mirror of
https://github.com/discourse/discourse.git
synced 2025-02-04 11:35:16 +08:00
15 lines
411 B
JavaScript
15 lines
411 B
JavaScript
import computed from 'ember-addons/ember-computed-decorators';
|
|
|
|
export default Ember.Controller.extend({
|
|
application: Ember.inject.controller(),
|
|
queryParams: ['category_id'],
|
|
|
|
@computed('model.is_group_user')
|
|
showGroupMessages(isGroupUser) {
|
|
if (!this.siteSettings.enable_personal_messages) {
|
|
return false;
|
|
}
|
|
return isGroupUser || (this.currentUser && this.currentUser.admin);
|
|
}
|
|
});
|