1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-15 03:05:26 +02:00

Fix issue processwire/processwire-issues#683 where $pages->findOne() didn't have exclusion/filter enabled if finding unpublished or hidden page that is editable & viewable to current user when the selector includes only reference to the page's id.

This commit is contained in:
Ryan Cramer
2018-09-13 08:50:49 -04:00
parent efb7a8ace2
commit 818d9f50a6

View File

@@ -115,7 +115,7 @@ class PagesLoader extends Wire {
if(!empty($options['lazy'])) return false;
$value = false;
$filter = empty($options['findOne']);
$filter = empty($options['findAll']);
if(is_array($selector)) {