Skip to content

[stable8.9] fix(teams): hide member actions the user is not allowed to perform - #5799

Merged
hamza221 merged 1 commit into
stable8.9from
backport/5796/stable8.9
Oct 23, 2026
Merged

hamza221 merged 1 commit into
stable8.9from
backport/5796/stable8.9

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 23, 2026

Copy link
Copy Markdown

Backport of PR #5796

The member menu showed options that the server rejects:

- With "Members can also invite" enabled, plain members saw
  "Remove member", but only moderators and above can remove members.
- Moderators saw "Promote to Admin", but only admins can change
  promote members to admin.
- Current user check compared the wrong ID which did not show the "Leave
  Team" button but showed a "Remove member" option which failed before.

Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
Assisted-by: Github Copilot:claude-opus-5-5
@backportbot backportbot Bot added 3. to review Waiting for reviews AI assisted This PR contains AI-assisted commits labels Oct 23, 2026
@backportbot backportbot Bot added this to the v8.9.0 milestone Oct 23, 2026
@hamza221
hamza221 enabled auto-merge October 23, 2026 13:21
@hamza221
hamza221 merged commit 11b9dc1 into stable8.9 Oct 23, 2026
42 checks passed
@hamza221
hamza221 deleted the backport/5796/stable8.9 branch October 23, 2026 13:24
@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted This PR contains AI-assisted commits

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants