diff --git a/app/services/games_service.rb b/app/services/games_service.rb index f338a4a5..db78c5dc 100755 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -21,6 +21,9 @@ class GamesService return{:status => 403} end 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 game_challenge.answer = nil