|
@@ -309,16 +309,14 @@ print '<table class="noborder centpercent">';
|
|
|
|
|
|
print '<tr class="liste_titre">';
|
|
|
print '<td>'.$langs->trans("Module").'</td>';
|
|
|
-if (($caneditperms && empty($objMod->rights_admin_allowed)) || empty($object->admin)) {
|
|
|
- if ($caneditperms) {
|
|
|
- print '<td class="center nowrap">';
|
|
|
- print '<a class="reposition commonlink" title="'.dol_escape_htmltag($langs->trans("All")).'" alt="'.dol_escape_htmltag($langs->trans("All")).'" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=addrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("All")."</a>";
|
|
|
- print ' / ';
|
|
|
- print '<a class="reposition commonlink" title="'.dol_escape_htmltag($langs->trans("None")).'" alt="'.dol_escape_htmltag($langs->trans("None")).'" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("None")."</a>";
|
|
|
- print '</td>';
|
|
|
- }
|
|
|
- print '<td class="center" width="24"> </td>';
|
|
|
+if ($caneditperms) {
|
|
|
+ print '<td class="center nowrap">';
|
|
|
+ print '<a class="reposition commonlink" title="'.dol_escape_htmltag($langs->trans("All")).'" alt="'.dol_escape_htmltag($langs->trans("All")).'" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=addrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("All")."</a>";
|
|
|
+ print ' / ';
|
|
|
+ print '<a class="reposition commonlink" title="'.dol_escape_htmltag($langs->trans("None")).'" alt="'.dol_escape_htmltag($langs->trans("None")).'" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("None")."</a>";
|
|
|
+ print '</td>';
|
|
|
}
|
|
|
+print '<td class="center" width="24"> </td>';
|
|
|
print '<td>'.$langs->trans("Permissions").'</td>';
|
|
|
if ($user->admin) {
|
|
|
print '<td class="right"></td>';
|