|
|
|
@ -967,7 +967,7 @@ class GamesController < ApplicationController
|
|
|
|
|
def user_next_game(shixun, challenge, game, identity)
|
|
|
|
|
next_game = game.next_of_current_game(shixun.id, game.myshixun_id, challenge.position)
|
|
|
|
|
# 实训允许跳关 、 当前关卡已经通关、 用户是已认证的老师以上权限的人,允许跳关
|
|
|
|
|
if shixun.task_pass || game.status == 2 || identity >= User::EDU_CERTIFICATION_TEACHER
|
|
|
|
|
if shixun.task_pass || game.status == 2 || identity <= User::EDU_CERTIFICATION_TEACHER
|
|
|
|
|
next_game
|
|
|
|
|
else
|
|
|
|
|
nil
|
|
|
|
|