aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/notification.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index d52165804..b19725ea6 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -370,7 +370,7 @@
if ($object instanceof ElggEntity) {
// Get config data
- global $CONFIG;
+ global $CONFIG, $SESSION;
if (trigger_plugin_hook('object:notifications',$object_type,array(
'event' => $event,
@@ -396,7 +396,8 @@
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
+ && $user->guid != $SESSION['user']->guid) {
$tmp = (array)get_user_notification_settings($guid);
$methods = array();