mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-12 19:02:35 +01:00
Update card.php
Load $usergroup->members is not necessary and wastes resources
This commit is contained in:
@@ -1945,7 +1945,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
||||
$exclude = array();
|
||||
|
||||
$usergroup = new UserGroup($db);
|
||||
$groupslist = $usergroup->listGroupsForUser($object->id);
|
||||
$groupslist = $usergroup->listGroupsForUser($object->id, false);
|
||||
|
||||
if (!empty($groupslist)) {
|
||||
foreach ($groupslist as $groupforuser) {
|
||||
|
||||
Reference in New Issue
Block a user