';
@@ -344,47 +344,47 @@ if ($result)
// Picto and label of permission
print '| '.img_object('',$picto).' '.$objMod->getName().' | ';
- // Permission and tick
- if (! empty($fuser->admin) && ! empty($objMod->rights_admin_allowed)) // Permission own because admin
- {
- if ($caneditperms)
- {
- print ''.img_picto($langs->trans("Administrator"),'star').' | ';
- }
- print '';
- print img_picto($langs->trans("Active"),'tick');
- print ' | ';
- }
- else if (in_array($obj->id, $permsuser)) // Permission own by user
- {
- if ($caneditperms)
- {
- print ''.img_edit_remove($langs->trans("Remove")).' | ';
- }
- print '';
- print img_picto($langs->trans("Active"),'tick');
- print ' | ';
- }
- else if (in_array($obj->id, $permsgroupbyentity[$entity])) // Permission own by group
- {
- if ($caneditperms)
- {
- print '';
- print $form->textwithtooltip($langs->trans("Inherited"),$langs->trans("PermissionInheritedFromAGroup"));
- print ' | ';
- }
- print '';
- print img_picto($langs->trans("Active"),'tick');
- print ' | ';
- }
- else
- {
- // Do not own permission
- if ($caneditperms)
- {
- print ''.img_edit_add($langs->trans("Add")).' | ';
- }
- print '  | ';
+ // Permission and tick
+ if (! empty($fuser->admin) && ! empty($objMod->rights_admin_allowed)) // Permission own because admin
+ {
+ if ($caneditperms)
+ {
+ print ''.img_picto($langs->trans("Administrator"),'star').' | ';
+ }
+ print '';
+ print img_picto($langs->trans("Active"),'tick');
+ print ' | ';
+ }
+ else if (in_array($obj->id, $permsuser)) // Permission own by user
+ {
+ if ($caneditperms)
+ {
+ print ''.img_edit_remove($langs->trans("Remove")).' | ';
+ }
+ print '';
+ print img_picto($langs->trans("Active"),'tick');
+ print ' | ';
+ }
+ else if (in_array($obj->id, $permsgroupbyentity[$entity])) // Permission own by group
+ {
+ if ($caneditperms)
+ {
+ print '';
+ print $form->textwithtooltip($langs->trans("Inherited"),$langs->trans("PermissionInheritedFromAGroup"));
+ print ' | ';
+ }
+ print '';
+ print img_picto($langs->trans("Active"),'tick');
+ print ' | ';
+ }
+ else
+ {
+ // Do not own permission
+ if ($caneditperms)
+ {
+ print ''.img_edit_add($langs->trans("Add")).' | ';
+ }
+ print '  | ';
}
$perm_libelle=($conf->global->MAIN_USE_ADVANCED_PERMS && ($langs->trans("PermissionAdvanced".$obj->id)!=("PermissionAdvanced".$obj->id))?$langs->trans("PermissionAdvanced".$obj->id):(($langs->trans("Permission".$obj->id)!=("Permission".$obj->id))?$langs->trans("Permission".$obj->id):$obj->libelle));