From efde52e02f15ce5bfbc40c6f44e6e206b613f8d8 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 4 Apr 2022 16:10:21 +0200 Subject: [PATCH] Use correct permission. --- .../Areas/Api/Controllers/Contents/ContentsController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/Squidex/Areas/Api/Controllers/Contents/ContentsController.cs b/backend/src/Squidex/Areas/Api/Controllers/Contents/ContentsController.cs index cb3fd2e04..7847784a1 100644 --- a/backend/src/Squidex/Areas/Api/Controllers/Contents/ContentsController.cs +++ b/backend/src/Squidex/Areas/Api/Controllers/Contents/ContentsController.cs @@ -561,7 +561,7 @@ namespace Squidex.Areas.Api.Controllers.Contents [ProducesResponseType(typeof(ContentsDto), StatusCodes.Status200OK)] [ApiPermissionOrAnonymous(Permissions.AppContentsChangeStatusOwn)] [ApiCosts(1)] - public async Task DeleteContentStatus(string app, string schema, DomainId id) + public async Task DeleteContentSchedule(string app, string schema, DomainId id) { var command = new CancelContentSchedule { ContentId = id }; @@ -613,7 +613,7 @@ namespace Squidex.Areas.Api.Controllers.Contents [HttpDelete] [Route("content/{app}/{schema}/{id}/draft/")] [ProducesResponseType(typeof(ContentsDto), StatusCodes.Status200OK)] - [ApiPermissionOrAnonymous(Permissions.AppContentsDeleteOwn)] + [ApiPermissionOrAnonymous(Permissions.AppContentsVersionDeleteOwn)] [ApiCosts(1)] public async Task DeleteVersion(string app, string schema, DomainId id) {