summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-02-09 12:01:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-02-09 12:01:22 +0000
commit79d01c7fe57db729cb1a592c7b796ae71503c026 (patch)
tree6fc8031ea8028cf064975da74553cd4ca8356c23 /app
parent2585ed2e3bf905b72a7b18192b56a6bb8500bda0 (diff)
downloadredmine-79d01c7fe57db729cb1a592c7b796ae71503c026.tar.gz
redmine-79d01c7fe57db729cb1a592c7b796ae71503c026.zip
Display watch link only when inside project with logged-in user (#2549).
git-svn-id: http://svn.redmine.org/redmine/trunk@12868 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/news/index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb
index 7fa75dc51..614a7b1f7 100644
--- a/app/views/news/index.html.erb
+++ b/app/views/news/index.html.erb
@@ -3,7 +3,7 @@
new_project_news_path(@project),
:class => 'icon icon-add',
:onclick => 'showAndScrollTo("add-news", "news_title"); return false;') if @project && User.current.allowed_to?(:manage_news, @project) %>
-<%= watcher_link(@project.enabled_module('news'), User.current) %>
+<%= watcher_link(@project.enabled_module('news'), User.current) if @project && User.current.logged? %>
</div>
<div id="add-news" style="display:none;">