Modif permissions
This commit is contained in:
parent
1ccd0ec737
commit
3193042774
@ -97,7 +97,7 @@ print '</table></div>';
|
||||
|
||||
print "\n<div class=\"tabsAction\">\n";
|
||||
|
||||
if ($_GET["action"] == '')
|
||||
if ($_GET["action"] == '' && $user->admin)
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?action=create\">".$langs->trans("Nouveau")."</a>";
|
||||
}
|
||||
|
||||
@ -60,10 +60,13 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/fiche.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans("Ligne");
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Factures');
|
||||
$h++;
|
||||
|
||||
if ($user->rights->telephonie->facture->lire)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Factures');
|
||||
$h++;
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/infoc.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Infos');
|
||||
|
||||
@ -545,9 +545,12 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Factures');
|
||||
$h++;
|
||||
if ($user->rights->telephonie->facture->lire)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Factures');
|
||||
$h++;
|
||||
}
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/infoc.php?id=".$ligne->id;
|
||||
|
||||
@ -69,10 +69,13 @@ llxHeader("","","Historique Ligne");
|
||||
$head[$h][1] = $langs->trans("Ligne");
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Factures');
|
||||
$h++;
|
||||
|
||||
if ($user->rights->telephonie->facture->lire)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Factures');
|
||||
$h++;
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/infoc.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Infos');
|
||||
$h++;
|
||||
|
||||
@ -101,10 +101,13 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
$head[$h][1] = $langs->trans("Ligne");
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Factures');
|
||||
$h++;
|
||||
|
||||
if ($user->rights->telephonie->facture->lire)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Factures');
|
||||
$h++;
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/infoc.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Infos');
|
||||
$hselected = $h;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user