Filemanager: Fix anonymous share stopped showing subdirectories on refresh

Broken by 2811304833
This commit is contained in:
nathan 2022-11-25 08:46:54 -07:00
parent be82f32b68
commit 38a82962b0

View File

@ -145,6 +145,9 @@ class AnonymousList extends filemanager_ui
*/ */
function get_rows(&$query, &$rows) function get_rows(&$query, &$rows)
{ {
// We turned off filter but still need to use the value
$query['filter'] = '';
// Check for navigating outside share, redirect back to share // Check for navigating outside share, redirect back to share
if (!empty($query['path']) && (!Vfs::stat($query['path'], false) || !Vfs::is_dir($query['path']) || !Vfs::check_access($query['path'], Vfs::READABLE))) if (!empty($query['path']) && (!Vfs::stat($query['path'], false) || !Vfs::is_dir($query['path']) || !Vfs::check_access($query['path'], Vfs::READABLE)))
{ {