aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/access.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/access.php')
-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 d56eb3dea..f557c939e 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -27,7 +27,7 @@
* @return string
*/
function get_access_list($user_id = 0, $site_id = 0, $flush = false) {
- global $CONFIG, $init_finished, $SESSION;
+ global $CONFIG, $init_finished;
static $access_list;
if (!isset($access_list) || !$init_finished) {
@@ -35,7 +35,7 @@ function get_access_list($user_id = 0, $site_id = 0, $flush = false) {
}
if ($user_id == 0) {
- $user_id = $SESSION['id'];
+ $user_id = get_loggedin_userid();
}
if (($site_id == 0) && (isset($CONFIG->site_id))) {