mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix JsHint
This commit is contained in:
@@ -62,9 +62,10 @@ Discourse.AdminUser = Discourse.User.extend({
|
||||
return this.get('username').toLowerCase();
|
||||
}).property('username'),
|
||||
|
||||
trustLevel: (function() {
|
||||
return Discourse.get('site.trust_levels').findProperty('id', this.get('trust_level'));
|
||||
}).property('trust_level'),
|
||||
trustLevel: function() {
|
||||
var site = Discourse.Site.instance();
|
||||
return site.get('trust_levels').findProperty('id', this.get('trust_level'));
|
||||
}.property('trust_level'),
|
||||
|
||||
isBanned: (function() {
|
||||
return this.get('is_banned') === true;
|
||||
|
||||
Reference in New Issue
Block a user