From eb1e51caecf6eb0779bb601d35dc14d6df0ddf3d Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 4 Mar 2009 18:42:13 +0000 Subject: Private items never trigger notifications git-svn-id: https://code.elgg.org/elgg/trunk@3086 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib') 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, -- cgit v1.2.3