mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
- use $this->_dms->getUser() to create user instead of calling LetoDMS_User
constructor
This commit is contained in:
parent
8ec46b5f68
commit
412d17562b
|
@ -890,8 +890,9 @@ class LetoDMS_Folder {
|
||||||
$resArr = $db->getResultArray($queryStr);
|
$resArr = $db->getResultArray($queryStr);
|
||||||
if (!is_bool($resArr)) {
|
if (!is_bool($resArr)) {
|
||||||
foreach ($resArr as $row) {
|
foreach ($resArr as $row) {
|
||||||
if ((!$this->_dms->enableAdminRevApp) && ($row["id"]==$this->_dms->adminID)) continue;
|
$user = $this->_dms->getUser($row['id']);
|
||||||
$this->_approversList["users"][] = new LetoDMS_User($row["id"], $row["login"], $row["pwd"], $row["fullName"], $row["email"], $row["language"], $row["theme"], $row["comment"], $row["isAdmin"]);
|
if (!$this->_dms->enableAdminRevApp && $user>isAdmin()) continue;
|
||||||
|
$this->_approversList["users"][] = $user;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user