cht-core
cht-core copied to clipboard
Deleting a place through the UI should also disable any users which are associated with that place
What feature do you want to improve? Deleting a place
Describe the improvement you'd like
- Create a place in the CHT
- Create an offline user and set their facility_id to equal that place
- The user is never active and doesn't create any docs
- A user manager deletes the place through the UI
Current - The user can still login. They get a profoundly broken experience. User managers spend a bunch of time trying to clean up these broken users as part of user-management investigations. Desired - The user should automagically be disabled when their place is deleted.
fyi @sugat009