Merge branch 'dev_newproject' into develop

This commit is contained in:
huang 2016-11-02 10:02:03 +08:00
commit d9ec0a93d3
1 changed files with 4 additions and 4 deletions

View File

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