aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/notification.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 18:42:13 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 18:42:13 +0000
commiteb1e51caecf6eb0779bb601d35dc14d6df0ddf3d (patch)
tree588531c2d0e0c8e2b81ccdd835695fab059a2245 /engine/lib/notification.php
parent5af0adf1ccc660d4c3d0fb0f107d83a511b7d989 (diff)
downloadelgg-eb1e51caecf6eb0779bb601d35dc14d6df0ddf3d.tar.gz
elgg-eb1e51caecf6eb0779bb601d35dc14d6df0ddf3d.tar.bz2
Private items never trigger notifications
git-svn-id: https://code.elgg.org/elgg/trunk@3086 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/notification.php')
-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,