mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 03:58:34 +08:00
14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
/**
|
|
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()
|
|
});
|