Restrict email updates to organization owners and admins only #5317
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ποΈ Checklist
<type>(<scope>)<!>: <title> TASK-1234
frontend
orbackend
unless it's globalπ£ Summary
Restrict email updates to organization owners and admins only to ensure proper access control within multi-member organizations.
π Description
Previously, any member of an organization could update their email address, regardless of their role. This update enforces a restriction where only organization owners and admins can update their email addresses. Members without these roles are now prevented from making such changes.
π· Description for instance maintainers
This update introduces a new restriction to the email update endpoint. It checks the role of the user within the organization and ensures that only users with the
owner
oradmin
role in organizations can update their email. This ensures better security and role-based access control. No changes are required for single-member organizations.π Preview steps
owner
,admin
, ormember
role within an MMO.