|
@@ 1495-1501 (lines=7) @@
|
| 1492 |
|
); |
| 1493 |
|
} |
| 1494 |
|
|
| 1495 |
|
if (!$this->repository->canUser('content', 'versionremove', $versionInfo)) { |
| 1496 |
|
throw new UnauthorizedException( |
| 1497 |
|
'content', |
| 1498 |
|
'versionremove', |
| 1499 |
|
array('contentId' => $versionInfo->contentInfo->id, 'versionNo' => $versionInfo->versionNo) |
| 1500 |
|
); |
| 1501 |
|
} |
| 1502 |
|
|
| 1503 |
|
$versionList = $this->persistenceHandler->contentHandler()->listVersions( |
| 1504 |
|
$versionInfo->contentInfo->id |
|
@@ 1582-1591 (lines=10) @@
|
| 1579 |
|
*/ |
| 1580 |
|
public function copyContent(ContentInfo $contentInfo, LocationCreateStruct $destinationLocationCreateStruct, APIVersionInfo $versionInfo = null) |
| 1581 |
|
{ |
| 1582 |
|
if (!$this->repository->canUser('content', 'create', $contentInfo, $destinationLocationCreateStruct)) { |
| 1583 |
|
throw new UnauthorizedException( |
| 1584 |
|
'content', |
| 1585 |
|
'create', |
| 1586 |
|
array( |
| 1587 |
|
'parentLocationId' => $destinationLocationCreateStruct->parentLocationId, |
| 1588 |
|
'sectionId' => $contentInfo->sectionId, |
| 1589 |
|
) |
| 1590 |
|
); |
| 1591 |
|
} |
| 1592 |
|
|
| 1593 |
|
$defaultObjectStates = $this->getDefaultObjectStates(); |
| 1594 |
|
|