aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/notification.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index de637b492..4a5ca5051 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -396,7 +396,8 @@
foreach($interested_users as $user) {
if ($user instanceof ElggUser) {
- if (($user->guid != $SESSION['user']->guid) && has_access_to_entity($object,$user)) {
+ if (($user->guid != $SESSION['user']->guid) && has_access_to_entity($object,$user)
+ && $object->access_id != ACCESS_PRIVATE) {
$methodstring = trigger_plugin_hook('notify:entity:message',$object->getType(),array(
'entity' => $object,