X Tutup
Skip to content

fix(site): use total_member_count for group subtitles when sharing#21744

Merged
geokat merged 1 commit intomainfrom
geokat/internal-1302-groups-with-zero-members-when-sharing-workspace
Jan 29, 2026
Merged

fix(site): use total_member_count for group subtitles when sharing#21744
geokat merged 1 commit intomainfrom
geokat/internal-1302-groups-with-zero-members-when-sharing-workspace

Conversation

@geokat
Copy link
Contributor

@geokat geokat commented Jan 29, 2026

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

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 geokat requested a review from jaaydenh January 29, 2026 01:33
@geokat geokat marked this pull request as ready for review January 29, 2026 01:33
Copy link
Contributor

@jaaydenh jaaydenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@geokat geokat merged commit f5d4926 into main Jan 29, 2026
32 checks passed
@geokat geokat deleted the geokat/internal-1302-groups-with-zero-members-when-sharing-workspace branch January 29, 2026 16:33
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup