diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php index 4248605f53a..87d2d466fcb 100644 --- a/htdocs/user/perms.php +++ b/htdocs/user/perms.php @@ -309,16 +309,14 @@ print '
| '.$langs->trans("Module").' | '; -if (($caneditperms && empty($objMod->rights_admin_allowed)) || empty($object->admin)) { - if ($caneditperms) { - print ''; - print 'id.'&action=addrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("All").""; - print ' / '; - print 'id.'&action=delrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("None").""; - print ' | '; - } - print ''; +if ($caneditperms) { + print ' | '; + print 'id.'&action=addrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("All").""; + print ' / '; + print 'id.'&action=delrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("None").""; + print ' | '; } +print ''; print ' | '.$langs->trans("Permissions").' | '; if ($user->admin) { print ''; |