Fix permission on store's lightning server

This commit is contained in:
nicolas.dorier
2020-06-26 16:20:18 +09:00
parent 9a989b46cc
commit 16b5f70e4b

View File

@@ -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;