aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/access.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index d89357ec0..3cf95ead7 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -69,7 +69,7 @@
$query = "select am.access_group_id from {$CONFIG->dbprefix}access_group_membership am ";
$query .= " left join {$CONFIG->dbprefix}access_groups ag on ag.id = am.access_group_id ";
- $query .= " where am.user_id = {$user_id} and (ag.site_id = {$site_id} or ag.site_id = 0)";
+ $query .= " where am.user_guid = {$user_id} and (ag.site_guid = {$site_id} or ag.site_guid = 0)";
$tmp_access_array = array(2);
if (isloggedin())