|
@@ 1631-1640 (lines=10) @@
|
| 1628 |
|
*/ |
| 1629 |
|
public function copyContent(ContentInfo $contentInfo, LocationCreateStruct $destinationLocationCreateStruct, APIVersionInfo $versionInfo = null) |
| 1630 |
|
{ |
| 1631 |
|
if (!$this->repository->canUser('content', 'create', $contentInfo, $destinationLocationCreateStruct)) { |
| 1632 |
|
throw new UnauthorizedException( |
| 1633 |
|
'content', |
| 1634 |
|
'create', |
| 1635 |
|
array( |
| 1636 |
|
'parentLocationId' => $destinationLocationCreateStruct->parentLocationId, |
| 1637 |
|
'sectionId' => $contentInfo->sectionId, |
| 1638 |
|
) |
| 1639 |
|
); |
| 1640 |
|
} |
| 1641 |
|
|
| 1642 |
|
$defaultObjectStates = $this->getDefaultObjectStates(); |
| 1643 |
|
|
|
@@ 1553-1559 (lines=7) @@
|
| 1550 |
|
); |
| 1551 |
|
} |
| 1552 |
|
|
| 1553 |
|
if (!$this->repository->canUser('content', 'versionremove', $versionInfo)) { |
| 1554 |
|
throw new UnauthorizedException( |
| 1555 |
|
'content', |
| 1556 |
|
'versionremove', |
| 1557 |
|
array('contentId' => $versionInfo->contentInfo->id, 'versionNo' => $versionInfo->versionNo) |
| 1558 |
|
); |
| 1559 |
|
} |
| 1560 |
|
|
| 1561 |
|
$versionList = $this->persistenceHandler->contentHandler()->listVersions( |
| 1562 |
|
$versionInfo->contentInfo->id, |