From dbdd0b52bff50184f4b3552056bdab68a913eed7 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 2 Nov 2016 09:46:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=AF=BE=E7=A8=8B=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E4=B8=8D=E8=83=BD=E5=8F=91=E9=80=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= 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 39610ecbc..885c61969 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -126,11 +126,11 @@ Redmine::AccessControl.map do |map| map.permission :view_course_files, {:files => :index, :versions => :download}, :read => true,:belong_to_course => true end - map.course_module :news do |map| - # map.permission :manage_news, {:news => [:new, :create, :edit, :update, :destroy], :comments => [:destroy]}, :require => :member + map.course_module :news do |map| + map.permission :manage_news, {:news => [:new, :create, :edit, :update, :destroy], :comments => [:destroy]}, :require => :member map.permission :view_course_news, {:news => [:index, :show]}, :public => true, :read => true - # map.permission :comment_news, {:comments => :create} - end + map.permission :comment_news, {:comments => :create} + end map.course_module :bids do |map| map.permission :view_homework_attaches, {:bids => [:show, :show_project, :revision]}, :read => true,:belong_to_course => true