Files
btcpayserver/BTCPayServer
d11n 1c921030dc Store users: Ensure the last owner cannot be downgraded (#6654)
* 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>
2025-04-08 17:21:07 +09:00
..
2024-12-03 21:13:23 +09:00
2021-12-31 16:59:02 +09:00
2024-09-02 18:37:39 +09:00
2024-12-03 22:37:10 +09:00
2023-04-10 11:07:03 +09:00
2024-10-30 23:39:11 +09:00