mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 15:45:40 +08:00
FIX: Do not load group members when user can't see it.
This commit is contained in:
parent
f061aee818
commit
40254bae1b
@ -42,7 +42,7 @@ const Group = RestModel.extend({
|
||||
},
|
||||
|
||||
findMembers(params) {
|
||||
if (Ember.isEmpty(this.name)) {
|
||||
if (Ember.isEmpty(this.name) || !this.can_see_members) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user