aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/access.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index 05fafd3d3..7ba1970f5 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -222,13 +222,13 @@ END;
if ($table_prefix)
$table_prefix = sanitise_string($table_prefix) . ".";
- $access = get_access_list();
-
if (!isset($owner)) {
$owner = get_loggedin_userid();
}
if (!$owner) $owner = -1;
+ $access = get_access_list($owner);
+
global $is_admin;
if (isset($is_admin) && $is_admin == true) {