|
@@ 1582-1588 (lines=7) @@
|
| 1579 |
|
); |
| 1580 |
|
} |
| 1581 |
|
|
| 1582 |
|
if (!$this->repository->canUser('content', 'versionremove', $versionInfo)) { |
| 1583 |
|
throw new UnauthorizedException( |
| 1584 |
|
'content', |
| 1585 |
|
'versionremove', |
| 1586 |
|
array('contentId' => $versionInfo->contentInfo->id, 'versionNo' => $versionInfo->versionNo) |
| 1587 |
|
); |
| 1588 |
|
} |
| 1589 |
|
|
| 1590 |
|
$versionList = $this->persistenceHandler->contentHandler()->listVersions( |
| 1591 |
|
$versionInfo->contentInfo->id, |
|
@@ 1663-1672 (lines=10) @@
|
| 1660 |
|
$destinationLocation = $this->repository->getLocationService()->loadLocation( |
| 1661 |
|
$destinationLocationCreateStruct->parentLocationId |
| 1662 |
|
); |
| 1663 |
|
if (!$this->repository->canUser('content', 'create', $contentInfo, [$destinationLocation])) { |
| 1664 |
|
throw new UnauthorizedException( |
| 1665 |
|
'content', |
| 1666 |
|
'create', |
| 1667 |
|
[ |
| 1668 |
|
'parentLocationId' => $destinationLocationCreateStruct->parentLocationId, |
| 1669 |
|
'sectionId' => $contentInfo->sectionId, |
| 1670 |
|
] |
| 1671 |
|
); |
| 1672 |
|
} |
| 1673 |
|
|
| 1674 |
|
$defaultObjectStates = $this->getDefaultObjectStates(); |
| 1675 |
|
|