From 6735d574b588d33324f0e6823c6262f485b36a21 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 1 Nov 2016 10:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=A1=B9=E7=9B=AEmodule?= =?UTF-8?q?=E4=B8=AD=E5=A4=9A=E4=BD=99=E7=9A=84=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/redmine.rb | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/redmine.rb b/lib/redmine.rb index e2dc8da0a..39610ecbc 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -195,11 +195,11 @@ Redmine::AccessControl.map do |map| # map.permission :manage_project_activities, {:project_enumerations => [:update, :destroy]}, :require => :member # end - map.project_module :news do |map| - map.permission :manage_news, {:news => [:new, :create, :edit, :update, :destroy], :comments => [:destroy]}, :require => :member - map.permission :view_news, {:news => [:index, :show]}, :public => true, :read => true - map.permission :comment_news, {:comments => [:create, :reply]} - end + # map.project_module :news do |map| + # map.permission :manage_news, {:news => [:new, :create, :edit, :update, :destroy], :comments => [:destroy]}, :require => :member + # map.permission :view_news, {:news => [:index, :show]}, :public => true, :read => true + # map.permission :comment_news, {:comments => [:create, :reply]} + # end map.contest_module :contestnotifications do |map| map.permission :manage_contestnotifications, {:contestnotifications => [:new, :create, :edit, :update, :destroy], :notificationcomments => [:destroy]}, :require => :member,:belong_to_contest => true @@ -219,17 +219,17 @@ Redmine::AccessControl.map do |map| map.permission :view_files, {:files => :index, :versions => :download}, :read => true end - map.project_module :wiki do |map| - map.permission :manage_wiki, {:wikis => [:edit, :destroy]}, :require => :member - map.permission :rename_wiki_pages, {:wiki => :rename}, :require => :member - map.permission :delete_wiki_pages, {:wiki => [:destroy, :destroy_version]}, :require => :member - map.permission :view_wiki_pages, {:wiki => [:index, :show, :special, :date_index]}, :read => true - map.permission :export_wiki_pages, {:wiki => [:export]}, :read => true - map.permission :view_wiki_edits, {:wiki => [:history, :diff, :annotate]}, :read => true - map.permission :edit_wiki_pages, :wiki => [:edit, :update, :preview, :add_attachment] - map.permission :delete_wiki_pages_attachments, {} - map.permission :protect_wiki_pages, {:wiki => :protect}, :require => :member - end + # map.project_module :wiki do |map| + # map.permission :manage_wiki, {:wikis => [:edit, :destroy]}, :require => :member + # map.permission :rename_wiki_pages, {:wiki => :rename}, :require => :member + # map.permission :delete_wiki_pages, {:wiki => [:destroy, :destroy_version]}, :require => :member + # map.permission :view_wiki_pages, {:wiki => [:index, :show, :special, :date_index]}, :read => true + # map.permission :export_wiki_pages, {:wiki => [:export]}, :read => true + # map.permission :view_wiki_edits, {:wiki => [:history, :diff, :annotate]}, :read => true + # map.permission :edit_wiki_pages, :wiki => [:edit, :update, :preview, :add_attachment] + # map.permission :delete_wiki_pages_attachments, {} + # map.permission :protect_wiki_pages, {:wiki => :protect}, :require => :member + # end map.project_module :repository do |map| map.permission :manage_repository, {:repositories => [:new, :create, :edit, :update, :committers, :destroy]}, :require => :member