diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php index bc8b15c7d51..a65762b6183 100644 --- a/htdocs/user/perms.php +++ b/htdocs/user/perms.php @@ -565,7 +565,10 @@ if ($result) { print ' '; } print ''; - print img_picto($langs->trans("Active"), 'tick'); + if (!$caneditperms) { + print img_picto($langs->trans("Active"), 'switch_on', '', false, 0, 0, '', 'opacitymedium'); + //print img_picto($langs->trans("Active"), 'tick'); + } print ''; } elseif (in_array($obj->id, $permsuser)) { // Permission granted by user if ($caneditperms) { @@ -578,7 +581,10 @@ if ($result) { print ' '; } print ''; - print img_picto($langs->trans("Active"), 'tick'); + if (!$caneditperms) { + print img_picto($langs->trans("Active"), 'switch_on', '', false, 0, 0, '', 'opacitymedium'); + //print img_picto($langs->trans("Active"), 'tick'); + } print ''; } elseif (isset($permsgroupbyentity[$entity]) && is_array($permsgroupbyentity[$entity])) { if (in_array($obj->id, $permsgroupbyentity[$entity])) { // Permission granted by group @@ -590,7 +596,8 @@ if ($result) { print ' '; } print ''; - print img_picto($langs->trans("Active"), 'tick'); + print img_picto($langs->trans("Active"), 'switch_on', '', false, 0, 0, '', 'opacitymedium'); + //print img_picto($langs->trans("Active"), 'tick'); print ''; } else { // Do not own permission @@ -601,7 +608,9 @@ if ($result) { print img_picto($langs->trans("Add"), 'switch_off'); print ''; } else { - print ' '; + print ''; + print ' '; + print ''; } print ' '; } @@ -616,7 +625,12 @@ if ($result) { } else { print ' '; } - print ' '; + print ''; + if (!$caneditperms) { + print img_picto($langs->trans("Disabled"), 'switch_off', '', false, 0, 0, '', 'opacitymedium'); + } + //print ' '; + print ''; } // Description of permission (2 columns)