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

14 lines
353 B
Plaintext
Raw Normal View History

/**
A base admin controller that has access to the Discourse properties.
@class AdminController
@extends Discourse.Controller
@namespace Discourse
@module Discourse
**/
export default Discourse.Controller.extend({
showBadges: function() {
return this.get('currentUser.admin') && Discourse.SiteSettings.enable_badges;
}.property()
});