未发布的实训,实训管理员可以删除

dev_trainings
daiao 6 years ago
parent c62b4d9afa
commit 32227c1f19

@ -376,7 +376,7 @@ class ApplicationController < ActionController::Base
def require_admin
return unless require_login
if !User.current.admin?
if !User.current.admin? && @shixun.status > 1
render_403
return false
end

Loading…
Cancel
Save