From d998f80060aadb2b0c73d730449d87359cf46f69 Mon Sep 17 00:00:00 2001 From: z9hang Date: Sun, 28 Sep 2014 16:40:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E8=AE=A8=E8=AE=BA=E5=8C=BA?= =?UTF-8?q?=E9=99=84=E4=BB=B6=E6=97=A0=E6=B3=95=E6=9F=A5=E7=9C=8B=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E6=9D=83=E9=99=90=E9=A1=B9=E7=9B=AE=E8=A2=AB?= =?UTF-8?q?=E5=88=A0=EF=BC=8C=E6=81=A2=E5=A4=8D=E4=B9=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/redmine.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/redmine.rb b/lib/redmine.rb index d43973d2a..a7d10262a 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -117,11 +117,11 @@ Redmine::AccessControl.map do |map| map.permission :projects_attachments_download,{:attachments => :download},:belong_to_project => true map.permission :course_attachments_download,{:attachments => :download},:belong_to_course => true map.permission :contest_attachments_download,{:attachments => :download},:belong_to_contest => true - #与项目一致,注释掉 - #map.course_module :files do |map| + + map.course_module :files do |map| # map.permission :manage_files, {:files => [:new, :create]}, :require => :loggedin - # map.permission :view_course_files, {:files => :index, :versions => :download}, :read => true - #end + map.permission :view_course_files, {:files => :index, :versions => :download}, :read => true + end map.course_module :news do |map| # map.permission :manage_news, {:news => [:new, :create, :edit, :update, :destroy], :comments => [:destroy]}, :require => :member