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

8 lines
236 B
Text
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') && this.siteSettings.enable_badges;
}.property()
});