Update user.class.php

This commit is contained in:
Frédéric FRANCE 2020-11-10 21:46:51 +01:00 committed by GitHub
parent fd078ef713
commit 0f8fc7ef2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2925,6 +2925,9 @@ class User extends CommonObject
$sql .= " WHERE entity = 0";
} else {
$sql .= " WHERE entity IN (".getEntity('user', 0).")";
if ($limitTo == 'active') {
$sql .= " AND statut = 1";
}
}
if ($admin >= 0) {
$sql .= " AND admin = ".(int) $admin;