mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 00:02:05 -05:00
13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
/**
|
|
A base admin controller that has access to the Discourse properties.
|
|
|
|
@class AdminController
|
|
@extends Discourse.Controller
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.AdminController = Discourse.Controller.extend({
|
|
showBadges: function() {
|
|
return this.get('currentUser.admin') && Discourse.SiteSettings.enable_badges;
|
|
}.property()
|
|
});
|