Merge pull request #8039 from ngaitahutourism/3.6

Address issue #8038
This commit is contained in:
Daniel Hensby 2018-04-27 10:22:46 +01:00 committed by GitHub
commit 2a9ef6ef94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -570,7 +570,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(