mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 03:34:33 +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:
@@ -115,7 +115,7 @@ class PagesLoader extends Wire {
|
|||||||
if(!empty($options['lazy'])) return false;
|
if(!empty($options['lazy'])) return false;
|
||||||
|
|
||||||
$value = false;
|
$value = false;
|
||||||
$filter = empty($options['findOne']);
|
$filter = empty($options['findAll']);
|
||||||
|
|
||||||
if(is_array($selector)) {
|
if(is_array($selector)) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user