Fix: droits non définis
This commit is contained in:
parent
78948158ee
commit
82c11dc30a
@ -240,15 +240,16 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
|
|||||||
*/
|
*/
|
||||||
print '<div class="tabsAction">';
|
print '<div class="tabsAction">';
|
||||||
|
|
||||||
if ($user->rights->projet->creer == 1)
|
|
||||||
{
|
|
||||||
|
|
||||||
if ($_GET["action"] != "edit")
|
if ($_GET["action"] != "edit")
|
||||||
|
{
|
||||||
|
if ($user->rights->projet->creer)
|
||||||
{
|
{
|
||||||
print '<a class="butAction" href="fiche.php?id='.$projet->id.'&action=edit">'.$langs->trans("Edit").'</a>';
|
print '<a class="butAction" href="fiche.php?id='.$projet->id.'&action=edit">'.$langs->trans("Edit").'</a>';
|
||||||
|
}
|
||||||
|
if ($user->rights->projet->supprimer)
|
||||||
|
{
|
||||||
print '<a class="butActionDelete" href="fiche.php?id='.$projet->id.'&action=delete">'.$langs->trans("Delete").'</a>';
|
print '<a class="butActionDelete" href="fiche.php?id='.$projet->id.'&action=delete">'.$langs->trans("Delete").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user