Skip to content

Commit

Permalink
FIX wrong permissions with multicompany MULTICOMPANY_TRANSVERSE_MODE
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Apr 8, 2024
1 parent 375434f commit 70ea53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/user/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
}

// Define value to know what current user can do on users
$permissiontoadd = (!empty($user->admin) || $user->hasRight("user", "user", "write"));
$permissiontoadd = (isModEnabled('multicompany') && !empty($user->entity) && getDolGlobalString('MULTICOMPANY_TRANSVERSE_MODE') ? false : (!empty($user->admin) || $user->hasRight("user", "user", "write")));
$canreaduser = (!empty($user->admin) || $user->hasRight("user", "user", "read"));
$canedituser = (!empty($user->admin) || $user->hasRight("user", "user", "write"));
$candisableuser = (!empty($user->admin) || $user->hasRight("user", "user", "delete"));
Expand Down

0 comments on commit 70ea53e

Please sign in to comment.