discourse/app/assets/javascripts/admin/controllers/admin.js.es6

5 lines
164 B
JavaScript

export default Ember.Controller.extend({
showBadges: function() {
return this.get('currentUser.admin') && this.siteSettings.enable_badges;
}.property()
});