diff --git a/server/users/User.coffee b/server/users/User.coffee index 9ccbab5e2..e96701aee 100644 --- a/server/users/User.coffee +++ b/server/users/User.coffee @@ -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 = ->