aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 12:53:15 +0000
committerkevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 12:53:15 +0000
commit6729b0e5387edd6edf76df5fb2f0a9dad7cf54e0 (patch)
tree53cffa19e9c847bbd839f4667d32884e691b57f5
parent6bd1f0516481d7795b8551f4b60714fcd200be8d (diff)
downloadelgg-6729b0e5387edd6edf76df5fb2f0a9dad7cf54e0.tar.gz
elgg-6729b0e5387edd6edf76df5fb2f0a9dad7cf54e0.tar.bz2
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
-rw-r--r--engine/lib/access.php6
1 files changed, 4 insertions, 2 deletions
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;