fix(mobile-api): keep a deactivated member already on an event's team
Only users being added must be active admins; someone already on the team stays until an admin removes them, so an unrelated event edit no longer fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
2efdcba1ae
commit
33f1e7a505
3 files changed
+27
-6
No files matched your search
@@ -85,10 +85,11 @@ The system SHALL let an admin with `BO_EVENTS` choose, on create and on edit, th
|
||||
|
||||
- **WHEN** an admin opens the team picker
|
||||
- **THEN** it offers active admin users only, never members or deactivated users
|
||||
- **AND** a request naming a member, a deactivated user or an unknown user is refused
|
||||
- **AND** a request adding a member, a deactivated user or an unknown user to the team is refused
|
||||
|
||||
#### Scenario: Deactivated member stays visible
|
||||
|
||||
- **GIVEN** `sales1` is on an event's team
|
||||
- **WHEN** `sales1` is deactivated
|
||||
- **THEN** the event still lists `sales1` on its team, marked inactive, until an admin removes them
|
||||
- **AND** saving the event with `sales1` still on the team succeeds
|
||||
Reference in new issue
Block a user