From a5ab68ab02c686dd97008492f9b4f7b1fbb34934 Mon Sep 17 00:00:00 2001 From: d11n Date: Wed, 10 Jul 2024 15:50:32 +0200 Subject: [PATCH] Greenfield: Fix missing delete app policy (#6098) --- BTCPayServer/Controllers/GreenField/GreenfieldAppsController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BTCPayServer/Controllers/GreenField/GreenfieldAppsController.cs b/BTCPayServer/Controllers/GreenField/GreenfieldAppsController.cs index b8809323a..308a7d027 100644 --- a/BTCPayServer/Controllers/GreenField/GreenfieldAppsController.cs +++ b/BTCPayServer/Controllers/GreenField/GreenfieldAppsController.cs @@ -212,6 +212,7 @@ namespace BTCPayServer.Controllers.Greenfield } [HttpDelete("~/api/v1/apps/{appId}")] + [Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)] public async Task DeleteApp(string appId) { var app = await _appService.GetApp(appId, null, includeArchived: true);