班级资源模块的权限修改
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
|
if @attachment.get_status_by_attach(User.current.id) == 2
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
allowed = User.current.allowed_to?(:course_attachments_download, @course, :global => false)
|
allowed = syllabus_course_member(User.current, @course) || @attachment.is_public == 1
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue