-
Bug
-
Resolution: Fixed
-
Low
-
None
-
Minor
Issue Summary
As an admin of Enterprise I should not be able to remove admin role from my own account
Steps to Reproduce
- As an admin of the Trello Enterprise go to the Enterprise Dashboard -> Licensed users page
- Select own account and click the `Enterprise` button
Expected Results
- either the `Remove Enterprise admin status` item is disabled with `Cannot revoke your own admin rights` context instead of `Remove Enterprise item status for the selected members`
- click the `Remove Enterprise admin status` item leads to the error flag with some message like `Cannot revoke your own admin rights`.
This should also work for the next cases:
- several admin have been selected including the own user's account
- several members have been selected including the own user's account
Actual Results
The `Remove Enterprise admin status` button is enabled and leads to:
- 403 error code with the `Cannot revoke your own admin rights` error message in the response for the delete admin role request
- no issues on UI, the admin role just looks like revoked unless manual page refresh
Screen recording: https://www.loom.com/share/7476f96961aa4744a47780a297cf8625?sid=5d6901ea-e41f-4b16-a090-3bd692af1ebe
Workaround
Refresh a page, to see the user still has an admin role