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