diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-09 17:10:54 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-09 17:10:54 +0000 |
commit | 6d3821d6ef360adb892267dbdeeea0eb43ffea05 (patch) | |
tree | 336806dc658ad318ed785b029ffa99c057366783 | |
parent | c2d28fb37233eddcb698638c50339e74da178fcc (diff) | |
download | elgg-6d3821d6ef360adb892267dbdeeea0eb43ffea05.tar.gz elgg-6d3821d6ef360adb892267dbdeeea0eb43ffea05.tar.bz2 |
Notification fix: you no longer get notifications on your own content.
git-svn-id: https://code.elgg.org/elgg/trunk@2698 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/notification.php | 5 |
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();
|