管理员下载竞赛作品附件报没权限
This commit is contained in:
parent
c67288de0d
commit
afe439abf3
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue