aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {