From 6729b0e5387edd6edf76df5fb2f0a9dad7cf54e0 Mon Sep 17 00:00:00 2001 From: kevinjardine Date: Wed, 4 Mar 2009 12:53:15 +0000 Subject: Added the ability to optionally specify the user to get_access_sql_suffix git-svn-id: https://code.elgg.org/elgg/trunk@3067 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engine') diff --git a/engine/lib/access.php b/engine/lib/access.php index 570f6cfaf..8f8373524 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -210,7 +210,7 @@ END; * * @param string $table_prefix Optional xxx. prefix for the access code. */ - function get_access_sql_suffix($table_prefix = "") + function get_access_sql_suffix($table_prefix = "",$owner=null) { global $ENTITY_SHOW_HIDDEN_OVERRIDE, $CONFIG; @@ -223,7 +223,9 @@ END; $access = get_access_list(); - $owner = get_loggedin_userid(); + if (!isset($owner)) { + $owner = get_loggedin_userid(); + } if (!$owner) $owner = -1; global $is_admin; -- cgit v1.2.3