|
@@ 1571-1573 (lines=3) @@
|
| 1568 |
|
if (($id = $this->urlParams['ID']) && is_numeric($id)) { |
| 1569 |
|
/** @var SiteTree $page */ |
| 1570 |
|
$page = SiteTree::get()->byID($id); |
| 1571 |
|
if ($page && (!$page->canEdit() || !$page->canCreate(null, array('Parent' => $page->Parent())))) { |
| 1572 |
|
return Security::permissionFailure($this); |
| 1573 |
|
} |
| 1574 |
|
if (!$page || !$page->ID) { |
| 1575 |
|
throw new HTTPResponse_Exception("Bad record ID #$id", 404); |
| 1576 |
|
} |
|
@@ 1615-1617 (lines=3) @@
|
| 1612 |
|
if (($id = $this->urlParams['ID']) && is_numeric($id)) { |
| 1613 |
|
/** @var SiteTree $page */ |
| 1614 |
|
$page = SiteTree::get()->byID($id); |
| 1615 |
|
if ($page && (!$page->canEdit() || !$page->canCreate(null, array('Parent' => $page->Parent())))) { |
| 1616 |
|
return Security::permissionFailure($this); |
| 1617 |
|
} |
| 1618 |
|
if (!$page || !$page->ID) { |
| 1619 |
|
throw new HTTPResponse_Exception("Bad record ID #$id", 404); |
| 1620 |
|
} |