mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 20:25:48 +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()
|
|
});
|