You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tHIS GET API SHOULD HAVE THE SAME PERMISSION AS 👍 public async Task Display(string contentItemId, string jsonPath)
{
var contentItem = await _contentManager.GetAsync(contentItemId, jsonPath);
if (contentItem == null)
{
return NotFound();
}
if (!await _authorizationService.AuthorizeAsync(User, **_CommonPermissions.ViewContent_**, contentItem))
{
return this.ChallengeOrForbid();
}
var model = await _contentItemDisplayManager.BuildDisplayAsync(contentItem, this);
return View(model);
}
The text was updated successfully, but these errors were encountered:
Not really. We use both permissions. First we make sure you have permission to access the API. Then we check to see if you have permission to view the requested content item.
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Go to 'Content GET API'
See error
DIFF PERMISSION in whole site
Expected behavior
tHIS GET API SHOULD HAVE THE SAME PERMISSION AS 👍 public async Task Display(string contentItemId, string jsonPath)
{
var contentItem = await _contentManager.GetAsync(contentItemId, jsonPath);
}
The text was updated successfully, but these errors were encountered: