mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:20:07 +08:00
FEATURE: implement lock/unlock trust level mechanics
This commit is contained in:
@ -182,6 +182,10 @@ Discourse.AdminUser = Discourse.User.extend({
|
||||
});
|
||||
},
|
||||
|
||||
canLockTrustLevel: function(){
|
||||
return this.get('trust_level') < 4;
|
||||
}.property('trust_level'),
|
||||
|
||||
isSuspended: Em.computed.equal('suspended', true),
|
||||
canSuspend: Em.computed.not('staff'),
|
||||
|
||||
|
Reference in New Issue
Block a user