mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
filter deleted users out of ClassroomView
This commit is contained in:
parent
feb4c16b85
commit
96003dd240
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ module.exports = class ClassroomView extends RootView
|
|||
onLoaded: ->
|
||||
@teacherMode = me.isAdmin() or @classroom.get('ownerID') is me.id
|
||||
userSessions = @sessions.groupBy('creator')
|
||||
@users.remove(@users.where({ deleted: true }))
|
||||
for user in @users.models
|
||||
user.sessions = new CocoCollection(userSessions[user.id], { model: LevelSession })
|
||||
user.sessions.comparator = 'changed'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue