mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 15:53:45 +08:00
8 lines
241 B
JavaScript
8 lines
241 B
JavaScript
import DiscourseController from 'discourse/controllers/controller';
|
|
|
|
export default DiscourseController.extend({
|
|
showBadges: function() {
|
|
return this.get('currentUser.admin') && Discourse.SiteSettings.enable_badges;
|
|
}.property()
|
|
});
|