fix(site): use total_member_count for group subtitles when sharing by geokat · Pull Request #21744 · coder/coder
Justification:
- Populating `members` is authorized with `group_member.read`
which is not required to be able to share a workspace
- Populating `total_member_count` is authorized with `group.read`
which is required to be able to share
- The updated helper is only used in template/workspace sharing UIs,
so other pages that might need counts of readable members are
unaffected
Related to: coder/internal#1302
geokat
marked this pull request as ready for review
geokat
deleted the
geokat/internal-1302-groups-with-zero-members-when-sharing-workspace
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters