Skip to content

DeleteUser should interact with project roles and user edits #3875

@imnasnainaec

Description

@imnasnainaec

A site admin, from site settings can delete any non-admin user. Several issues:

  • There's a dialog confirming deletion, but no warnings what projects the user is on or what edits they have
  • When the user is deleted, their user roles and user edits are orphaned in the database
  • The frontend gui prevents admins from deleting other admins, but the backend controller doesn't prevent it

Currently it requires a maintenance script to delete projects and the script handles all the cleanup. Perhaps it should be the same with users. From the gui, would we want the ability to disable accounts instead of deleting them (like archiving a project)?

Todo:

  • In the confirm-deletion dialog, list projects the user is in and what their role is in each project.
  • When the user is deleted, also:
    • delete all their user roles
    • update the projects to remove those roles
    • delete all the user edits

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions