去掉项目module中多余的模块

This commit is contained in:
huang 2016-11-01 10:24:26 +08:00
parent 69d43dcdf2
commit 6735d574b5
1 changed files with 16 additions and 16 deletions

View File

@ -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