diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Endpoints/Api/GetEndpoint.cs b/src/OrchardCore.Modules/OrchardCore.Contents/Endpoints/Api/GetEndpoint.cs index faff9130759..f522136a8c2 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Endpoints/Api/GetEndpoint.cs +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Endpoints/Api/GetEndpoint.cs @@ -26,11 +26,6 @@ private static async Task HandleAsync( IAuthorizationService authorizationService, HttpContext httpContext) { - if (!await authorizationService.AuthorizeAsync(httpContext.User, Permissions.AccessContentApi)) - { - return httpContext.ChallengeOrForbid("Api"); - } - var contentItem = await contentManager.GetAsync(contentItemId); if (contentItem == null)