aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/access.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-13 16:41:01 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-13 16:41:01 +0000
commit3a3603a70356e994b695224c234f7d4980458864 (patch)
treeef15f2789ac53c50e987628e6e355ad918c6ce7e /engine/lib/access.php
parentd317d085286f215e67244688d4b5af3f7b1348d0 (diff)
downloadelgg-3a3603a70356e994b695224c234f7d4980458864.tar.gz
elgg-3a3603a70356e994b695224c234f7d4980458864.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Access using new schema git-svn-id: https://code.elgg.org/elgg/trunk@208 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/access.php')
-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())