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