管理员下载竞赛作品附件报没权限

This commit is contained in:
cxt 2017-03-13 11:15:10 +08:00
parent c67288de0d
commit afe439abf3
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class ZipdownController < ApplicationController
def assort
if params[:obj_class] == "Bid"
bid = Bid.find params[:obj_id]
render_403 if User.current.allowed_to?(:as_teacher,bid.courses.first)
#render_403 if User.current.allowed_to?(:as_teacher,bid.courses.first)
zipfile = checkfileSize(bid.homeworks) {
zip_bid bid
}