mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
FIX: group card not showing if user can't see its members.
This commit is contained in:
parent
60a3110113
commit
058bf56b4c
@ -56,7 +56,8 @@ export default Component.extend(CardContentsBase, CleansUp, {
|
||||
if (!group.flair_url && !group.flair_bg_color) {
|
||||
group.set("flair_url", "fa-users");
|
||||
}
|
||||
return group.members.length < maxMembersToDisplay
|
||||
return group.can_see_members &&
|
||||
group.members.length < maxMembersToDisplay
|
||||
? group.findMembers({ limit: maxMembersToDisplay }, true)
|
||||
: Promise.resolve();
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user