summaryrefslogtreecommitdiff
path: root/modules/notification/helpers/notification_menu.php
diff options
context:
space:
mode:
authorRomain LE DISEZ <romain.git@ledisez.net>2009-07-23 18:08:57 +0200
committerRomain LE DISEZ <romain.git@ledisez.net>2009-07-23 18:08:57 +0200
commit386130114b3e3a9cf1617a1ea62407f569ee391c (patch)
tree4728e044dc755b79494101effd7fab4689d5289d /modules/notification/helpers/notification_menu.php
parent06fd89e8bcad2142f0b6158d5db7a91d2b6956d8 (diff)
parent5999ccb512d65ad9ae06a0a5542eb1123b44e9db (diff)
Merge commit 'upstream/master'
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")