|
@@ 1566-1572 (lines=7) @@
|
| 1563 |
|
); |
| 1564 |
|
} |
| 1565 |
|
|
| 1566 |
|
if (!$this->repository->canUser('content', 'versionremove', $versionInfo)) { |
| 1567 |
|
throw new UnauthorizedException( |
| 1568 |
|
'content', |
| 1569 |
|
'versionremove', |
| 1570 |
|
array('contentId' => $versionInfo->contentInfo->id, 'versionNo' => $versionInfo->versionNo) |
| 1571 |
|
); |
| 1572 |
|
} |
| 1573 |
|
|
| 1574 |
|
$versionList = $this->persistenceHandler->contentHandler()->listVersions( |
| 1575 |
|
$versionInfo->contentInfo->id, |
|
@@ 1647-1656 (lines=10) @@
|
| 1644 |
|
$destinationLocation = $this->repository->getLocationService()->loadLocation( |
| 1645 |
|
$destinationLocationCreateStruct->parentLocationId |
| 1646 |
|
); |
| 1647 |
|
if (!$this->repository->canUser('content', 'create', $contentInfo, [$destinationLocation])) { |
| 1648 |
|
throw new UnauthorizedException( |
| 1649 |
|
'content', |
| 1650 |
|
'create', |
| 1651 |
|
[ |
| 1652 |
|
'parentLocationId' => $destinationLocationCreateStruct->parentLocationId, |
| 1653 |
|
'sectionId' => $contentInfo->sectionId, |
| 1654 |
|
] |
| 1655 |
|
); |
| 1656 |
|
} |
| 1657 |
|
|
| 1658 |
|
$defaultObjectStates = $this->getDefaultObjectStates(); |
| 1659 |
|
|