You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main owner of an enterprise can remove themselves as a manager: after deleting their own email, an error 401 "unauthorized" is triggered but the owner is still removed, and loose access to the admin dashboard.
Expected Behavior
If it's allowed to remove oneself as manager, there shouldn't be an error.
If it's not allowed to remove oneself as manager, the trash icon shouldn't be activated.
Steps to Reproduce
Create an enterprise with a new account
In Enterprises> Users, add another mail in the fields: Managers, Notifications, and Owner
See that the trash to delete the initial account is activated
I think the correct behavior here must be to change the owner first. The downside is that currently only the owner can remove users. What do you think @openfoodfoundation/train-drivers-product-owners ?
sigmundpetersen
changed the title
[Enterprise users] Main owner can remove themselves as manager
[Enterprise->Users] Main owner can remove themselves as manager
Jan 3, 2023
Description
The main owner of an enterprise can remove themselves as a manager: after deleting their own email, an error 401 "unauthorized" is triggered but the owner is still removed, and loose access to the admin dashboard.
Expected Behavior
If it's allowed to remove oneself as manager, there shouldn't be an error.
If it's not allowed to remove oneself as manager, the trash icon shouldn't be activated.
Steps to Reproduce
Animated Gif/Screenshot
Severity
bug-s3: a feature is broken but there is a workaround
The text was updated successfully, but these errors were encountered: