diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-07 20:25:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-07 20:25:25 +0000 |
commit | 9b0fcdaf2b6f965f0777dbedbaf0158cf7d927bf (patch) | |
tree | 89bde1f6f9865a8b81010d8d9cbc579018e5e2b7 /lib | |
parent | d3f93a2907fb5fe42a17727102507dc1ad0ddbb3 (diff) | |
download | redmine-9b0fcdaf2b6f965f0777dbedbaf0158cf7d927bf.tar.gz redmine-9b0fcdaf2b6f965f0777dbedbaf0158cf7d927bf.zip |
New permission: view news (#7068).
Patch by Felix Schäfer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16639 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine.rb | 2 | ||||
-rw-r--r-- | lib/redmine/default_data/loader.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index 6c53cfb19..729fcb561 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -131,7 +131,7 @@ Redmine::AccessControl.map do |map| end map.project_module :news do |map| - map.permission :view_news, {:news => [:index, :show]}, :public => true, :read => true + map.permission :view_news, {:news => [:index, :show]}, :read => true map.permission :manage_news, {:news => [:new, :create, :edit, :update, :destroy], :comments => [:destroy], :attachments => :upload}, :require => :member map.permission :comment_news, {:comments => :create} end diff --git a/lib/redmine/default_data/loader.rb b/lib/redmine/default_data/loader.rb index 18e707908..680e84199 100644 --- a/lib/redmine/default_data/loader.rb +++ b/lib/redmine/default_data/loader.rb @@ -65,6 +65,7 @@ module Redmine :view_calendar, :log_time, :view_time_entries, + :view_news, :comment_news, :view_documents, :view_wiki_pages, @@ -91,6 +92,7 @@ module Redmine :view_calendar, :log_time, :view_time_entries, + :view_news, :comment_news, :view_documents, :view_wiki_pages, @@ -109,6 +111,7 @@ module Redmine :view_gantt, :view_calendar, :view_time_entries, + :view_news, :comment_news, :view_documents, :view_wiki_pages, @@ -123,6 +126,7 @@ module Redmine :view_gantt, :view_calendar, :view_time_entries, + :view_news, :view_documents, :view_wiki_pages, :view_wiki_edits, |