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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user