|
@@ 1511-1517 (lines=7) @@
|
| 1508 |
|
); |
| 1509 |
|
} |
| 1510 |
|
|
| 1511 |
|
if (!$this->repository->canUser('content', 'versionremove', $versionInfo)) { |
| 1512 |
|
throw new UnauthorizedException( |
| 1513 |
|
'content', |
| 1514 |
|
'versionremove', |
| 1515 |
|
array('contentId' => $versionInfo->contentInfo->id, 'versionNo' => $versionInfo->versionNo) |
| 1516 |
|
); |
| 1517 |
|
} |
| 1518 |
|
|
| 1519 |
|
$versionList = $this->persistenceHandler->contentHandler()->listVersions( |
| 1520 |
|
$versionInfo->contentInfo->id, |
|
@@ 1592-1601 (lines=10) @@
|
| 1589 |
|
$destinationLocation = $this->repository->getLocationService()->loadLocation( |
| 1590 |
|
$destinationLocationCreateStruct->parentLocationId |
| 1591 |
|
); |
| 1592 |
|
if (!$this->repository->canUser('content', 'create', $contentInfo, [$destinationLocation])) { |
| 1593 |
|
throw new UnauthorizedException( |
| 1594 |
|
'content', |
| 1595 |
|
'create', |
| 1596 |
|
[ |
| 1597 |
|
'parentLocationId' => $destinationLocationCreateStruct->parentLocationId, |
| 1598 |
|
'sectionId' => $contentInfo->sectionId, |
| 1599 |
|
] |
| 1600 |
|
); |
| 1601 |
|
} |
| 1602 |
|
|
| 1603 |
|
$defaultObjectStates = $this->getDefaultObjectStates(); |
| 1604 |
|
|