mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fixed bug in fetching submitted ladder sessions that hadn't been scored yet.
This commit is contained in:
parent
bc15ccd240
commit
700b460f91
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class LevelSessionHandler extends Handler
|
|||
@sendSuccess(res, documents)
|
||||
|
||||
hasAccessToDocument: (req, document, method=null) ->
|
||||
return true if req.method is 'GET' and document.get('totalScore')
|
||||
return true if req.method is 'GET' and document.get('submitted')
|
||||
return true if ('employer' in (req.user.get('permissions') ? [])) and (method ? req.method).toLowerCase() is 'get'
|
||||
super(arguments...)
|
||||
|
||||
|
|
Loading…
Reference in a new issue