mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix permission on store's lightning server
This commit is contained in:
parent
9a989b46cc
commit
16b5f70e4b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue