summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-05-29 07:30:54 +0000
committerGo MAEDA <maeda@farend.jp>2021-05-29 07:30:54 +0000
commit0b8c23f021834f0f03f799b789dcc690f59c84d4 (patch)
tree46f0dd712e398bc3fb09717585a3abeed70083de /lib
parentf217037771b2ca84f695fbd02f14098933c4f3e1 (diff)
downloadredmine-0b8c23f021834f0f03f799b789dcc690f59c84d4.tar.gz
redmine-0b8c23f021834f0f03f799b789dcc690f59c84d4.zip
Ability to add watchers to Wiki pages (#7652).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21016 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index cabbffe29..f6d83acd9 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -169,6 +169,9 @@ Redmine::AccessControl.map do |map|
map.permission :rename_wiki_pages, {:wiki => :rename}, :require => :member
map.permission :delete_wiki_pages, {:wiki => [:destroy, :destroy_version]}, :require => :member
map.permission :delete_wiki_pages_attachments, {}
+ map.permission :view_wiki_page_watchers, {}, :read => true
+ map.permission :add_wiki_page_watchers, {:watchers => [:new, :create, :autocomplete_for_user]}
+ map.permission :delete_wiki_page_watchers, {:watchers => :destroy}
map.permission :protect_wiki_pages, {:wiki => :protect}, :require => :member
map.permission :manage_wiki, {:wikis => [:edit, :destroy], :wiki => :rename}, :require => :member
end