specify / specify7

Specify 7
https://www.specifysoftware.org/products/specify-7/
GNU General Public License v2.0
64 stars 36 forks source link

Workbench Dataset deletes alongside user with no warning #2584

Open melton-jason opened 1 year ago

melton-jason commented 1 year ago

Describe the bug If a user has ownership of one or more Datasets, when that user is deleted there is no warning dialog or deletion-blocker outside of the expected 'Are you sure you want to delete this SpecifyUser from the database?': the user is removed from the database, along with all datasets the user owned.

To Reproduce Steps to reproduce the behavior:

  1. Transfer ownership of a dataset to other user
  2. Go to Security and Accounts
  3. Delete user that has access to dataset
  4. See that Agent AND datasets are deleted from the database

Desktop:

I have not tested the case where a user owns a resource where the deletion-blockers do apply, but I would assume this bug would have no significant impact in that scenario.

Are there deletion-blockers in place for the spdataset table?

maxpatiiuk commented 1 year ago

See also https://github.com/specify/specify7/issues/1694

emenslin commented 2 months ago

Can recreate in edge (7.9.6)