Fix incorrect condition while re-routing from group messages.
This commit is contained in:
parent
19d6b9cb36
commit
7138f6dd69
|
@ -8,7 +8,7 @@ export default Discourse.Route.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
afterModel(group) {
|
afterModel(group) {
|
||||||
if (!group.get('is_group_user') || !(this.currentUser && this.currentUser.admin)) {
|
if (!group.get('is_group_user') && !(this.currentUser && this.currentUser.admin)) {
|
||||||
this.transitionTo("group.members", group);
|
this.transitionTo("group.members", group);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue