]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixing a bug with when getting the sql suffix for the non-loggedin user.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Sep 2009 02:08:40 +0000 (02:08 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Sep 2009 02:08:40 +0000 (02:08 +0000)
git-svn-id: https://code.elgg.org/elgg/trunk@3483 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/access.php

index 05fafd3d361e77b26218ff1fa2c6911a47eb75db..7ba1970f5aedcc9cd19589002546c2699672a6da 100644 (file)
@@ -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) {