aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 14:25:35 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 14:25:35 +0000
commit1887cdb16b1795e7ec269a39db26e34dbfb4e76c (patch)
tree9de361254647ed8f90929e02a306eb5f477942e4 /engine
parent0e4d884eed2fc18c70d2140d305183e8253b9c68 (diff)
downloadelgg-1887cdb16b1795e7ec269a39db26e34dbfb4e76c.tar.gz
elgg-1887cdb16b1795e7ec269a39db26e34dbfb4e76c.tar.bz2
Access modification - owners can always see their own content
git-svn-id: https://code.elgg.org/elgg/trunk@3074 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/access.php2
1 files changed, 1 insertions, 1 deletions
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)";