|
|
@ -21,6 +21,9 @@ class GamesService
|
|
|
|
return{:status => 403}
|
|
|
|
return{:status => 403}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
game_challenge = Challenge.min.find(game.challenge_id)
|
|
|
|
game_challenge = Challenge.min.find(game.challenge_id)
|
|
|
|
|
|
|
|
unless current_user.is_certification_teacher || current_user.admin?
|
|
|
|
|
|
|
|
game_challenge.answer = ""
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
has_answer = game_challenge.answer.blank? ? false : true
|
|
|
|
has_answer = game_challenge.answer.blank? ? false : true
|
|
|
|
game_challenge.answer = nil
|
|
|
|
game_challenge.answer = nil
|
|
|
|