班级资源模块的权限修改

This commit is contained in:
cxt 2017-06-14 09:42:05 +08:00
parent 858150b3f9
commit 24b88fe326
1 changed files with 1 additions and 1 deletions

View File

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