eZ/Publish/Core/MVC/Symfony/FieldType/RichText/Renderer.php 1 location
|
@@ 395-402 (lines=8) @@
|
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
// Check that Content is published, since sudo allows loading unpublished content. |
| 395 |
|
if ( |
| 396 |
|
$content->getVersionInfo()->status !== VersionInfo::STATUS_PUBLISHED |
| 397 |
|
&& !$this->authorizationChecker->isGranted( |
| 398 |
|
new AuthorizationAttribute('content', 'versionread', array('valueObject' => $content)) |
| 399 |
|
) |
| 400 |
|
) { |
| 401 |
|
throw new AccessDeniedException(); |
| 402 |
|
} |
| 403 |
|
} |
| 404 |
|
|
| 405 |
|
/** |
eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php 1 location
|
@@ 374-381 (lines=8) @@
|
| 371 |
|
} |
| 372 |
|
|
| 373 |
|
// Check that Content is published, since sudo allows loading unpublished content. |
| 374 |
|
if ( |
| 375 |
|
$content->getVersionInfo()->status !== APIVersionInfo::STATUS_PUBLISHED |
| 376 |
|
&& !$this->authorizationChecker->isGranted( |
| 377 |
|
new AuthorizationAttribute('content', 'versionread', array('valueObject' => $content)) |
| 378 |
|
) |
| 379 |
|
) { |
| 380 |
|
throw new AccessDeniedException(); |
| 381 |
|
} |
| 382 |
|
|
| 383 |
|
if ($response->isNotModified($this->getRequest())) { |
| 384 |
|
return $response; |