From b605df1c72a0844955d59d05029190a8a420aa6f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 13 Dec 2022 13:02:29 +0100 Subject: [PATCH] Debug v17 --- htdocs/user/perms.php | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) 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)