From 0b8c23f021834f0f03f799b789dcc690f59c84d4 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 29 May 2021 07:30:54 +0000 Subject: 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 --- lib/redmine.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3