From 1887cdb16b1795e7ec269a39db26e34dbfb4e76c Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 4 Mar 2009 14:25:35 +0000 Subject: Access modification - owners can always see their own content git-svn-id: https://code.elgg.org/elgg/trunk@3074 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/access.php b/engine/lib/access.php index ecdcaad3b..2341e3cb2 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -248,7 +248,7 @@ END; } if (empty($sql)) - $sql = " $friends_bit ({$table_prefix}access_id in {$access} or ({$table_prefix}access_id = " . ACCESS_PRIVATE . " and {$table_prefix}owner_guid = $owner))"; + $sql = " $friends_bit ({$table_prefix}access_id in {$access} or ({$table_prefix}owner_guid = {$owner}) or ({$table_prefix}access_id = " . ACCESS_PRIVATE . " and {$table_prefix}owner_guid = $owner))"; if ($enemies_bit) { $sql = "$enemies_bit AND ($sql)"; -- cgit v1.2.3