Description
Currently, an admin can remove themselves or other admins without ensuring that at least one admin remains in the group. This may result in a group with zero administrators, causing governance and management issues.
Role integrity rules should be enforced to ensure that every group always has at least one admin.
Proposed Improvements
- Prevent removal of the last remaining admin
- Prevent an admin from leaving if they are the only admin
- Return appropriate 400/403 response when rule is violated
- Optionally require admin transfer before leaving
Acceptance Criteria
Description
Currently, an admin can remove themselves or other admins without ensuring that at least one admin remains in the group. This may result in a group with zero administrators, causing governance and management issues.
Role integrity rules should be enforced to ensure that every group always has at least one admin.
Proposed Improvements
Acceptance Criteria