dev_course
daiao 5 years ago
parent d3ea1bf63e
commit 394efe9bf5

@ -17,7 +17,7 @@ class MyshixunsController < ApplicationController
# 强制重置实训 # 强制重置实训
# 前段需要按照操作过程提示 # 前段需要按照操作过程提示
def reset_my_game def reset_my_game
unless current_user.admin? unless (current_user.admin? || current_user.id == @myshixun.user_id)
tip_exception("403", "") tip_exception("403", "")
end end

Loading…
Cancel
Save