eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php 1 location
|
@@ 350-357 (lines=8) @@
|
| 347 |
|
} |
| 348 |
|
|
| 349 |
|
// Check that Content is published, since sudo allows loading unpublished content. |
| 350 |
|
if ( |
| 351 |
|
$content->getVersionInfo()->status !== APIVersionInfo::STATUS_PUBLISHED |
| 352 |
|
&& !$this->authorizationChecker->isGranted( |
| 353 |
|
new AuthorizationAttribute('content', 'versionread', array('valueObject' => $content)) |
| 354 |
|
) |
| 355 |
|
) { |
| 356 |
|
throw new AccessDeniedException(); |
| 357 |
|
} |
| 358 |
|
|
| 359 |
|
if ($response->isNotModified($this->getRequest())) { |
| 360 |
|
return $response; |
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 |
|
/** |