diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-02-03 14:00:56 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-02-03 16:15:52 +0100 |
commit | 08dbb3590d64a5c1bf8981f275e47aef84acb4e0 (patch) | |
tree | e96e2f67583bda3513889d0f2565bb6b98943417 | |
parent | bcd7920b817b60df9b1b266118419e44c39900db (diff) |
use function instead of variable
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | application/models/muser.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/models/muser.php b/application/models/muser.php index fb8abad8b..398253c6a 100644 --- a/application/models/muser.php +++ b/application/models/muser.php @@ -156,8 +156,8 @@ class Muser extends CI_Model { { $session_level = $this->session->userdata("access_level"); - $wanted = array_search($wanted_level, $this->access_levels); - $have = array_search($session_level, $this->access_levels); + $wanted = array_search($wanted_level, $this->get_access_levels()); + $have = array_search($session_level, $this->get_access_levels()); if ($wanted === false || $have === false) { throw new \exceptions\PublicApiException("api/invalid-accesslevel", "Failed to determine access level"); |