-
Notifications
You must be signed in to change notification settings - Fork 1
Deleted user still appears in organisation admin dropdown #156
Description
Summary
When a user is deleted from the database, their email address remains visible and selectable in the organisation administrator dropdown on the organisation details page in the CMS.
Steps to Reproduce
- Navigate to any organisation listing in the CMS (admin.streetsupport.net/organisations/*)
- Note a user listed as an admin for that organisation
- Delete that user from the users database
- Return to the organisation details page
- Check the administrator dropdown at the top of the page
Expected Behaviour
The deleted user's email should no longer appear in the organisation administrator dropdown.
Actual Behaviour
The deleted user's email remains visible and selectable in the dropdown, despite no longer existing in the users database.
Additional Context
- Reported by location-admin user
- Issue appears to be generic across organisation listings
- Suggests the dropdown is not properly filtering against current user records
- Could lead to attempting to assign admin rights to non-existent users
Additional Context
- Page URL: Any organisation listing in the CMS
- Content type: organisation details
- Can still reproduce: yes
- Entity: Assume it is generic.
- CMS Role: location admin
- Triage confidence: high
Original report
Reporter: Debbie Tillyer (debbie-chelmsford@streetsupport.net)
Submitted: 2026-04-02T14:36:19.397Z
What they were trying to do:
Deleted the user from an organisation but their email is still listed in the drop down at the top of the organisation as an admin and can be selected for us (despite no longer being in the users database)
What happened instead:
Same as above really. Removing a user from the database doesn't remove their email from the org administrator box on the organisation details page.
Triage reasoning: This is a CMS UI issue where a dropdown component is not properly updating when underlying user data changes. The admin interface should validate user existence when populating dropdowns.