diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-22 11:11:48 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-22 11:11:48 -0700 |
commit | 427e1130b26a75a59b5e180e2008f5eace398920 (patch) | |
tree | c217d24fd6be2bad5bebac7feadb0ce267d1f50f /modules/notification/helpers/notification_menu.php | |
parent | 4ddaaeb9dd3359226d0406f85c58ea219f559e4e (diff) |
Modified the notification get_subscribers to ignore any users that don't
have "view" access to the item the notification is being generated for.
Fix for ticket: #538.
Diffstat (limited to 'modules/notification/helpers/notification_menu.php')
-rw-r--r-- | modules/notification/helpers/notification_menu.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/notification/helpers/notification_menu.php b/modules/notification/helpers/notification_menu.php index 87478b8a..73d1dd03 100644 --- a/modules/notification/helpers/notification_menu.php +++ b/modules/notification/helpers/notification_menu.php @@ -22,10 +22,10 @@ class notification_menu_Core { if (!user::active()->guest) { $item = $theme->item(); - if ($item && $item->is_album()) { + if ($item && $item->is_album() && access::can("view", $item)) { $watching = notification::is_watching($item); - $watching ? $label = t("Remove notifications") : $label = t("Enable notifications"); + $label = $watching ? t("Remove notifications") : t("Enable notifications"); $menu->get("options_menu") ->append(Menu::factory("link") |