From c54eaadce03b36df86d56c308f41c2a58b7f8fd7 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 10 Sep 2009 02:08:40 +0000 Subject: Fixing a bug with when getting the sql suffix for the non-loggedin user. git-svn-id: https://code.elgg.org/elgg/trunk@3483 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib') 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) { -- cgit v1.2.3