summaryrefslogtreecommitdiff
path: root/modules/notification/helpers/notification_menu.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-22 11:11:48 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-22 11:11:48 -0700
commit427e1130b26a75a59b5e180e2008f5eace398920 (patch)
treec217d24fd6be2bad5bebac7feadb0ce267d1f50f /modules/notification/helpers/notification_menu.php
parent4ddaaeb9dd3359226d0406f85c58ea219f559e4e (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.php4
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")