1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Allowed page includes on custom home

For #2279
Old hold-over for when include content permissions were handled less
delicately.
This commit is contained in:
Dan Brown
2021-10-04 11:26:26 +01:00
parent 505d7e604e
commit d3a9645161
3 changed files with 23 additions and 1 deletions

View File

@@ -316,6 +316,7 @@ class PageContent
}
// Find page and skip this if page not found
/** @var ?Page $matchedPage */
$matchedPage = Page::visible()->find($pageId);
if ($matchedPage === null) {
$html = str_replace($fullMatch, '', $html);