mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
localhost default user = admin
This commit is contained in:
parent
8276dbf2d1
commit
0474b2ceb5
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ 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 = ->
|
||||
|
|
Loading…
Reference in a new issue