资源调整

dev_winse
cxt 6 years ago
parent b41d127635
commit 93eac23c58

@ -162,6 +162,7 @@ class AttachmentsController < ApplicationController
def attachment_candown def attachment_candown
unless current_user.admin? || current_user.business? unless current_user.admin? || current_user.business?
candown = true candown = true
unless params[:type] == 'history'
if @file.container && current_user.logged? if @file.container && current_user.logged?
# 课堂资源、作业、毕设相关资源的权限判断 # 课堂资源、作业、毕设相关资源的权限判断
if @file.container.is_a?(Course) if @file.container.is_a?(Course)
@ -187,4 +188,5 @@ class AttachmentsController < ApplicationController
end end
end end
end end
end
end end

Loading…
Cancel
Save