班级资源模块的权限修改
This commit is contained in:
parent
858150b3f9
commit
24b88fe326
|
@ -376,7 +376,7 @@ class ApplicationController < ActionController::Base
|
|||
if @attachment.get_status_by_attach(User.current.id) == 2
|
||||
return true
|
||||
else
|
||||
allowed = User.current.allowed_to?(:course_attachments_download, @course, :global => false)
|
||||
allowed = syllabus_course_member(User.current, @course) || @attachment.is_public == 1
|
||||
end
|
||||
else
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue