mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 00:51:03 +08:00
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) {
|
||||
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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user