From 0ac1fd39eff78371db2fd7140076fbfa9f16435d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Nov 2025 22:00:55 +0100 Subject: [PATCH] Fix CI --- htdocs/user/group/perms.php | 44 ++++++++++++------------------------- 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/htdocs/user/group/perms.php b/htdocs/user/group/perms.php index 922f8b4f744..78496036119 100644 --- a/htdocs/user/group/perms.php +++ b/htdocs/user/group/perms.php @@ -500,47 +500,31 @@ foreach ($arrayofpermission as $i => $obj) { print ''; // Permission and tick (2 columns) - if (isset($permsgroupbyentitypluszero) && is_array($permsgroupbyentitypluszero)) { - print ''; - if (in_array($obj->id, $permsgroupbyentitypluszero)) { - // Own permission by group - if ($permissiontoedit) { - print ''; - print 'id.'&confirm=yes&updatedmodulename='.$obj->module.'">'; - //print img_edit_remove($langs->trans("Remove")); - print img_picto($langs->trans("Remove"), 'switch_on'); - print ''; - print ''; - } else { - print ''; - } + print ''; + if (in_array($obj->id, $permsgroupbyentitypluszero)) { + // Own permission by group + if ($permissiontoedit) { print ''; - print img_picto($langs->trans("Active"), 'tick'); + print 'id.'&confirm=yes&updatedmodulename='.$obj->module.'">'; + //print img_edit_remove($langs->trans("Remove")); + print img_picto($langs->trans("Remove"), 'switch_on'); + print ''; print ''; } else { - // Do not own permission - if ($permissiontoedit) { - print ''; - print 'id.'&confirm=yes&updatedmodulename='.$obj->module.'">'; - //print img_edit_add($langs->trans("Add")); - print img_picto($langs->trans("Add"), 'switch_off'); - print ''; - print ''; - } else { - print ''; - } - print ''; - print ''; + print ''; } + print ''; + print img_picto($langs->trans("Active"), 'tick'); + print ''; } else { // Do not own permission - print ''; if ($permissiontoedit) { print ''; print 'id.'&confirm=yes&updatedmodulename='.$obj->module.'">'; //print img_edit_add($langs->trans("Add")); print img_picto($langs->trans("Add"), 'switch_off'); - print ''; + print ''; + print ''; } else { print ''; }