mirror of
https://github.com/wassname/talk.git
synced 2026-08-10 12:41:02 +08:00
hardened configuration
- moved env rewrite + dotenv code to single location - fixed bug with system flag on user
This commit is contained in:
@@ -295,6 +295,14 @@ UserSchema.virtual('hasVerifiedEmail').get(function() {
|
||||
});
|
||||
});
|
||||
|
||||
UserSchema.virtual('system')
|
||||
.get(function() {
|
||||
return this._system;
|
||||
})
|
||||
.set(function(system) {
|
||||
this._system = system;
|
||||
});
|
||||
|
||||
/**
|
||||
* banned returns true when the user is currently banned, and sets the banned
|
||||
* status locally.
|
||||
|
||||
Reference in New Issue
Block a user