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

8 lines
241 B
Plaintext
Raw Normal View History

2014-08-12 19:04:36 -04:00
import DiscourseController from 'discourse/controllers/controller';
2014-08-12 19:04:36 -04:00
export default DiscourseController.extend({
showBadges: function() {
return this.get('currentUser.admin') && Discourse.SiteSettings.enable_badges;
}.property()
});