mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:34:17 +08:00
FIX: Group page tabs not displaying for normal users.
This commit is contained in:
parent
c68bcfeb72
commit
a9a0e626db
|
@ -58,14 +58,8 @@ export default Ember.Controller.extend({
|
|||
return this.get('tabs').filter(t => {
|
||||
let display = true;
|
||||
|
||||
if (this.currentUser) {
|
||||
let admin = this.currentUser.admin;
|
||||
|
||||
if (automatic && t.get('requiresGroupAdmin')) {
|
||||
display = false;
|
||||
} else {
|
||||
display = admin || isGroupOwner;
|
||||
}
|
||||
if (this.currentUser && t.get('requiresGroupAdmin')) {
|
||||
display = automatic ? false : (this.currentUser.admin || isGroupOwner);
|
||||
} else if (t.get('requiresGroupAdmin')) {
|
||||
display = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user