Skip to content

Commit

Permalink
Fix: avoid warning with multicompany tranverse mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Jul 4, 2018
1 parent ca13d7b commit d796199
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions htdocs/user/card.php
Expand Up @@ -1190,8 +1190,11 @@
$res=$object->fetch_optionals();

// Check if user has rights
$object->getrights();
if (empty($object->nb_rights) && $object->statut != 0) setEventMessages($langs->trans('UserHasNoPermissions'), null, 'warnings');
if (empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE))
{
$object->getrights();
if (empty($object->nb_rights) && $object->statut != 0) setEventMessages($langs->trans('UserHasNoPermissions'), null, 'warnings');
}

// Connexion ldap
// pour recuperer passDoNotExpire et userChangePassNextLogon
Expand Down Expand Up @@ -1731,7 +1734,7 @@
}
}
}

print "</div>\n";


Expand Down

0 comments on commit d796199

Please sign in to comment.