Repository navigation
fix(teams): apply membership privacy to create and update responses - #15027
Conversation
Creating a membership or updating its roles returned the member's name and email even when the project hides them from other members. Both responses now follow the same privacy settings as the membership read endpoints, with the self, privileged and key exceptions.
|
Review complete. No issues found — approved ✅. This PR introduces membership privacy controls: projects can now hide member names and emails from team membership responses unless the caller is privileged, app-user, or viewing itself.
Reviewed commit: 8988543 |
🟢 Tier S · Ready to merge
Membership creation and role-update responses now apply project name and email privacy settings, while retaining visibility for the member, privileged users, and API keys. E2E coverage checks hidden and enabled privacy states and updates existing membership response expectations.
📂 Walkthrough · 4
Reviewed |
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Creating a membership or updating its roles returned the member's name and email even when the project hides them from other members. Both responses now follow the same privacy settings as the membership read endpoints, with the self, privileged and key exceptions.
Lint, PHPStan and the touched unit tests passed locally before rebasing on main; e2e runs in CI.
Related: appwrite-labs/cloud#6666