Merge branch 'dev_local' of https://bdgit.educoder.net/Hjqreturn/pgfqe6ch8 into dev_local

dev_local
cxt 6 years ago
commit adbcac182e

@ -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

Loading…
Cancel
Save