mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
whatever
This commit is contained in:
parent
0474b2ceb5
commit
160c99b2b8
2 changed files with 1 additions and 2 deletions
server/users
|
@ -23,7 +23,6 @@ UserSchema.pre('init', (next) ->
|
|||
UserSchema.post('init', ->
|
||||
@set('anonymous', false) if @get('email')
|
||||
@currentSubscriptions = JSON.stringify(@get('emailSubscriptions'))
|
||||
@set('permissions', ['admin']) unless isProduction
|
||||
)
|
||||
|
||||
UserSchema.methods.isAdmin = ->
|
||||
|
|
|
@ -186,4 +186,4 @@ UserHandler = class UserHandler extends Handler
|
|||
res.redirect(document?.get('photoURL') or '/images/generic-wizard-icon.png')
|
||||
res.end()
|
||||
|
||||
module.exports = new UserHandler()
|
||||
module.exports = new UserHandler()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue