mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 22:57:16 +08:00
Convert a lot of Globals to ES6 modules
This commit is contained in:
@ -2,6 +2,6 @@ import DiscourseController from 'discourse/controllers/controller';
|
||||
|
||||
export default DiscourseController.extend({
|
||||
showBadges: function() {
|
||||
return this.get('currentUser.admin') && Discourse.SiteSettings.enable_badges;
|
||||
return this.get('currentUser.admin') && this.siteSettings.enable_badges;
|
||||
}.property()
|
||||
});
|
||||
|
Reference in New Issue
Block a user