|
@@ 1490-1496 (lines=7) @@
|
| 1487 |
|
); |
| 1488 |
|
} |
| 1489 |
|
|
| 1490 |
|
if (!$this->repository->canUser('content', 'versionremove', $versionInfo)) { |
| 1491 |
|
throw new UnauthorizedException( |
| 1492 |
|
'content', |
| 1493 |
|
'versionremove', |
| 1494 |
|
array('contentId' => $versionInfo->contentInfo->id, 'versionNo' => $versionInfo->versionNo) |
| 1495 |
|
); |
| 1496 |
|
} |
| 1497 |
|
|
| 1498 |
|
$versionList = $this->persistenceHandler->contentHandler()->listVersions( |
| 1499 |
|
$versionInfo->contentInfo->id, |
|
@@ 1571-1580 (lines=10) @@
|
| 1568 |
|
$destinationLocation = $this->repository->getLocationService()->loadLocation( |
| 1569 |
|
$destinationLocationCreateStruct->parentLocationId |
| 1570 |
|
); |
| 1571 |
|
if (!$this->repository->canUser('content', 'create', $contentInfo, [$destinationLocation])) { |
| 1572 |
|
throw new UnauthorizedException( |
| 1573 |
|
'content', |
| 1574 |
|
'create', |
| 1575 |
|
[ |
| 1576 |
|
'parentLocationId' => $destinationLocationCreateStruct->parentLocationId, |
| 1577 |
|
'sectionId' => $contentInfo->sectionId, |
| 1578 |
|
] |
| 1579 |
|
); |
| 1580 |
|
} |
| 1581 |
|
|
| 1582 |
|
$defaultObjectStates = $this->getDefaultObjectStates(); |
| 1583 |
|
|