2013-05-28 11:52:31 -04:00
|
|
|
/**
|
|
|
|
A base admin controller that has access to the Discourse properties.
|
|
|
|
|
|
|
|
@class AdminController
|
|
|
|
@extends Discourse.Controller
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
2014-07-22 23:20:45 -04:00
|
|
|
export default Discourse.Controller.extend({
|
2014-03-19 00:18:04 -04:00
|
|
|
showBadges: function() {
|
|
|
|
return this.get('currentUser.admin') && Discourse.SiteSettings.enable_badges;
|
|
|
|
}.property()
|
|
|
|
});
|