Skip to content

Commit

Permalink
Fix: call loadRights on User (not getRights)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Aug 3, 2024
1 parent 0e7a4f6 commit 8f10258
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htdocs/user/class/api_users.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function get($id, $includepermissions = 0)
}

if ($includepermissions) {
$this->useraccount->getRights();
$this->useraccount->loadRights();
}

return $this->_cleanObjectDatas($this->useraccount);
Expand Down Expand Up @@ -207,7 +207,7 @@ public function getByLogin($login, $includepermissions = 0)
}

if ($includepermissions) {
$this->useraccount->getRights();
$this->useraccount->loadRights();
}

return $this->_cleanObjectDatas($this->useraccount);
Expand Down Expand Up @@ -246,7 +246,7 @@ public function getByEmail($email, $includepermissions = 0)
}

if ($includepermissions) {
$this->useraccount->getRights();
$this->useraccount->loadRights();
}

return $this->_cleanObjectDatas($this->useraccount);
Expand Down Expand Up @@ -281,7 +281,7 @@ public function getInfo($includepermissions = 0)
}

if ($includepermissions) {
$this->useraccount->getRights();
$this->useraccount->loadRights();
}

$usergroup = new UserGroup($this->db);
Expand Down

0 comments on commit 8f10258

Please sign in to comment.