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