mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-19 21:24:22 +01:00
Fix permission on store's lightning server
This commit is contained in:
@@ -49,7 +49,7 @@ namespace BTCPayServer.Security.GreenField
|
||||
var store = await _storeRepository.FindStore((string)storeId, userid);
|
||||
if (store == null)
|
||||
break;
|
||||
if (Policies.IsStoreModifyPolicy(policy))
|
||||
if (Policies.IsStoreModifyPolicy(policy) || policy == Policies.CanUseLightningNodeInStore)
|
||||
{
|
||||
if (store.Role != StoreRoles.Owner)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user