This commit is contained in:
Maxime Kohlhaas 2018-12-02 17:59:11 +01:00
parent 03a67cee99
commit 42c97cf7d5

View File

@ -1169,7 +1169,7 @@ else
// Check if user has rights
$object->getrights();
if (empty($object->nb_rights) && $object->statut != 0) setEventMessages($langs->trans('UserHasNoPermissions'), null, 'warnings');
if (empty($object->nb_rights) && $object->statut != 0 && empty($object->admin)) setEventMessages($langs->trans('UserHasNoPermissions'), null, 'warnings');
// Connexion ldap
// pour recuperer passDoNotExpire et userChangePassNextLogon