Greenfield: Fix missing delete app policy (#6098)

This commit is contained in:
d11n
2024-07-10 15:50:32 +02:00
committed by GitHub
parent e7297ce6b8
commit a5ab68ab02

View File

@@ -212,6 +212,7 @@ namespace BTCPayServer.Controllers.Greenfield
}
[HttpDelete("~/api/v1/apps/{appId}")]
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
public async Task<IActionResult> DeleteApp(string appId)
{
var app = await _appService.GetApp(appId, null, includeArchived: true);