summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-02-03 14:00:56 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-02-03 16:15:52 +0100
commit08dbb3590d64a5c1bf8981f275e47aef84acb4e0 (patch)
treee96e2f67583bda3513889d0f2565bb6b98943417 /application/models
parentbcd7920b817b60df9b1b266118419e44c39900db (diff)
use function instead of variable
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/muser.php4
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");