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