Modif permissions

This commit is contained in:
Rodolphe Quiedeville 2005-09-12 13:46:01 +00:00
parent 1ccd0ec737
commit 3193042774
5 changed files with 28 additions and 16 deletions

View File

@ -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>";
} }

View File

@ -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');

View File

@ -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;

View File

@ -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');

View File

@ -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');