Check content permissions before performing action (#15043)

* Setting actionContext.Result when authz wasn't successful

* Taking into account permissions when it is a new node

* Cleanup

* Passing nodeId as path when new item
This commit is contained in:
Elitsa Marinovska
2023-11-01 11:30:32 +01:00
committed by GitHub
parent bde88caf14
commit 92af8ac881
4 changed files with 36 additions and 48 deletions

View File

@@ -79,7 +79,6 @@ public abstract class ContentControllerBase : BackOfficeNotificationsController
ModelState.AddModelError("id", $"content with id: {id} was not found");
NotFoundObjectResult errorResponse = NotFound(ModelState);
return errorResponse;
}