From b7c0e049b54dbc15182cc057bd2ff9933eb43bb0 Mon Sep 17 00:00:00 2001 From: Kukks Date: Wed, 22 Apr 2020 14:39:40 +0200 Subject: [PATCH] fix bug in permission store selector --- .../Security/GreenField/GreenFieldAuthorizationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Security/GreenField/GreenFieldAuthorizationHandler.cs b/BTCPayServer/Security/GreenField/GreenFieldAuthorizationHandler.cs index a4f6ed681..9a0fd3196 100644 --- a/BTCPayServer/Security/GreenField/GreenFieldAuthorizationHandler.cs +++ b/BTCPayServer/Security/GreenField/GreenFieldAuthorizationHandler.cs @@ -69,7 +69,7 @@ namespace BTCPayServer.Security.GreenField if (context.HasPermission(Permission.Create(requirement.Policy, store.Id))) permissionedStores.Add(store); } - _HttpContext.SetStoresData(stores.ToArray()); + _HttpContext.SetStoresData(permissionedStores.ToArray()); success = true; } break;