summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-26 19:49:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-26 19:49:02 +0000
commitb03e03b7704a50639f143806471386fab4900835 (patch)
tree072426e6ef00d2cfe0a95b27405e149663339a7d /lib/redmine.rb
parentd5bec063e7b656974b09f9d5f9bf29326a041b7c (diff)
downloadredmine-b03e03b7704a50639f143806471386fab4900835.tar.gz
redmine-b03e03b7704a50639f143806471386fab4900835.zip
Global News view should not be allowed without permission (#7068).
git-svn-id: http://svn.redmine.org/redmine/trunk@16721 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 6f4d3e07c..5f01787c2 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -217,6 +217,7 @@ Redmine::MenuManager.map :application_menu do |menu|
menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :caption => :label_calendar
menu.push :news, {:controller => 'news', :action => 'index'},
+ :if => Proc.new {User.current.allowed_to?(:view_news, nil, :global => true)},
:caption => :label_news_plural
end