mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 07:11:43 +08:00
16 lines
354 B
JavaScript
16 lines
354 B
JavaScript
import computed from 'ember-addons/ember-computed-decorators';
|
|
|
|
export default Ember.Component.extend({
|
|
tagName: '',
|
|
|
|
@computed('group')
|
|
availableTabs(group) {
|
|
return this.get('tabs').filter(t => {
|
|
if (t.admin) {
|
|
return this.currentUser ? this.currentUser.canManageGroup(group) : false;
|
|
}
|
|
return true;
|
|
});
|
|
}
|
|
});
|