|
@@ 1614-1620 (lines=7) @@
|
| 1611 |
|
); |
| 1612 |
|
} |
| 1613 |
|
|
| 1614 |
|
if (!$this->repository->canUser('content', 'versionremove', $versionInfo)) { |
| 1615 |
|
throw new UnauthorizedException( |
| 1616 |
|
'content', |
| 1617 |
|
'versionremove', |
| 1618 |
|
array('contentId' => $versionInfo->contentInfo->id, 'versionNo' => $versionInfo->versionNo) |
| 1619 |
|
); |
| 1620 |
|
} |
| 1621 |
|
|
| 1622 |
|
$versionList = $this->persistenceHandler->contentHandler()->listVersions( |
| 1623 |
|
$versionInfo->contentInfo->id, |
|
@@ 1695-1704 (lines=10) @@
|
| 1692 |
|
$destinationLocation = $this->repository->getLocationService()->loadLocation( |
| 1693 |
|
$destinationLocationCreateStruct->parentLocationId |
| 1694 |
|
); |
| 1695 |
|
if (!$this->repository->canUser('content', 'create', $contentInfo, [$destinationLocation])) { |
| 1696 |
|
throw new UnauthorizedException( |
| 1697 |
|
'content', |
| 1698 |
|
'create', |
| 1699 |
|
[ |
| 1700 |
|
'parentLocationId' => $destinationLocationCreateStruct->parentLocationId, |
| 1701 |
|
'sectionId' => $contentInfo->sectionId, |
| 1702 |
|
] |
| 1703 |
|
); |
| 1704 |
|
} |
| 1705 |
|
|
| 1706 |
|
$defaultObjectStates = $this->getDefaultObjectStates(); |
| 1707 |
|
|