aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-26 12:12:40 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-26 12:12:40 +0000
commit9a89d9e8099030da9cbc7de0ac84529e5225de1f (patch)
tree24ca94c3bd140374829388e4475aed57b75b6127 /engine/lib
parent3f4850c5e55b221492b02475bd9d182e8137dae3 (diff)
downloadelgg-9a89d9e8099030da9cbc7de0ac84529e5225de1f.tar.gz
elgg-9a89d9e8099030da9cbc7de0ac84529e5225de1f.tar.bz2
Small access tweak for sending notifications.
git-svn-id: https://code.elgg.org/elgg/trunk@2962 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/notification.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index c513452cf..45f190b9a 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -399,7 +399,11 @@
if ((in_array($object->access_id,get_access_list($user->guid)) ||
$object->access_id == ACCESS_PUBLIC ||
$object->access_id == ACCESS_LOGGED_IN)
- && $object->access_id != ACCESS_PRIVATE
+ &&
+ ($object->access_id != ACCESS_PRIVATE ||
+ ($object->access_id == ACCESS_PRIVATE &&
+ $object->owner_guid == $user->guid)
+ )
&& $user->guid != $SESSION['user']->guid
&& $object instanceof ElggEntity) {