From: brettp Date: Thu, 10 Sep 2009 02:08:40 +0000 (+0000) Subject: Fixing a bug with when getting the sql suffix for the non-loggedin user. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c54eaadce03b36df86d56c308f41c2a58b7f8fd7;p=lorea%2Felgg.git 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 --- 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) {