mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-07 10:34:46 -04:00
Fix #2970: Turn admin off by default on localhost
This commit is contained in:
parent
3268440b9d
commit
bce3b94a85
1 changed files with 0 additions and 1 deletions
|
@ -200,7 +200,6 @@ UserSchema.statics.unconflictName = unconflictName = (name, done) ->
|
|||
|
||||
UserSchema.methods.register = (done) ->
|
||||
@set('anonymous', false)
|
||||
@set('permissions', ['admin']) if not isProduction and not GLOBAL.testing
|
||||
if (name = @get 'name')? and name isnt ''
|
||||
unconflictName name, (err, uniqueName) =>
|
||||
return done err if err
|
||||
|
|
Loading…
Add table
Reference in a new issue