mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-31 12:44:29 +01:00
* Store users: Ensure the last owner cannot be downgraded Changes the behaviour of the `AddOrUpdateStoreUser` method to throw errors for the failure cases, so that the UI and API can report the actual problem. A role change might fail if the user already has that role or if they are the last owner of the store. * Cleanup code --------- Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>