mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 06:55:51 +08:00
FIX: Automatic groups should be editable via groups page.
This commit is contained in:
parent
5e75d5c1bf
commit
a37a6f57d9
@ -65,12 +65,12 @@ export default Ember.Controller.extend({
|
||||
});
|
||||
},
|
||||
|
||||
@computed('model.is_group_user', 'model.is_group_owner')
|
||||
getTabs(isGroupUser, isGroupOwner) {
|
||||
@computed('model.is_group_user', 'model.is_group_owner', 'model.automatic')
|
||||
getTabs(isGroupUser, isGroupOwner, automatic) {
|
||||
return this.get('tabs').filter(t => {
|
||||
let isMember = false;
|
||||
|
||||
if (this.currentUser) {
|
||||
if (this.currentUser && !automatic) {
|
||||
let admin = this.currentUser.admin;
|
||||
|
||||
if (t.get('requiresGroupAdmin')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user