Disallow submission of non-denormalized sessions to ladders.

This commit is contained in:
Nick Winter 2014-03-09 12:53:11 -07:00
parent 34983059aa
commit 3e82e0b599

View file

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