mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Disallow submission of non-denormalized sessions to ladders.
This commit is contained in:
parent
34983059aa
commit
3e82e0b599
1 changed files with 4 additions and 3 deletions
|
@ -80,6 +80,7 @@ module.exports = class MyMatchesTabView extends CocoView
|
|||
@setRankingButtonText button, if @readyToRank(session) then 'rank' else 'unavailable'
|
||||
|
||||
readyToRank: (session) ->
|
||||
return false unless session?.get('levelID') # If it hasn't been denormalized, then it's not ready.
|
||||
c1 = session?.get('code')
|
||||
c2 = session?.get('submittedCode')
|
||||
c1 and not _.isEqual(c1, c2)
|
||||
|
|
Loading…
Reference in a new issue