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