mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-10 01:42:33 +01:00
FIX : when we're just admin and not super admin, if we create new user with transverse mode, we don't see it then we can't add him in usergroup
This commit is contained in:
@@ -194,7 +194,7 @@ $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."user as u2 ON u.fk_user = u2.rowid";
|
||||
// TODO add hook
|
||||
if (! empty($conf->multicompany->enabled)) {
|
||||
if (! empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
|
||||
if (! empty($user->admin) && empty($user->entity)) {
|
||||
if (! empty($user->admin)) {
|
||||
if ($conf->entity == 1) {
|
||||
$sql.= " WHERE u.entity IS NOT NULL";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user