summaryrefslogtreecommitdiffstats
path: root/application/models/muser.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/muser.php')
-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");