mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '3.5' into 3.6
This commit is contained in:
commit
cda61fb1ec
@ -576,7 +576,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
|||||||
$id = (int)$this->getRequest()->getVar('PageID');
|
$id = (int)$this->getRequest()->getVar('PageID');
|
||||||
$anchors = array();
|
$anchors = array();
|
||||||
|
|
||||||
if (($page = Page::get()->byID($id)) && !empty($page)) {
|
if (($page = SiteTree::get()->byID($id)) && !empty($page)) {
|
||||||
if (!$page->canView()) {
|
if (!$page->canView()) {
|
||||||
throw new SS_HTTPResponse_Exception(
|
throw new SS_HTTPResponse_Exception(
|
||||||
_t(
|
_t(
|
||||||
|
Loading…
Reference in New Issue
Block a user