Fix incorrect condition while re-routing from group messages.

This commit is contained in:
Guo Xiang Tan 2018-03-16 16:39:02 +08:00
parent 19d6b9cb36
commit 7138f6dd69

View File

@ -8,7 +8,7 @@ export default Discourse.Route.extend({
},
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);
}
},