From ac41289ecd0863e1acb7c8281dae2b092a8b0536 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 7 Jul 2021 14:42:10 -0600 Subject: [PATCH] Fix wrong permission constant used, resulting in permissions when there shouldn't be --- api/src/Vfs/Sqlfs/StreamWrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Vfs/Sqlfs/StreamWrapper.php b/api/src/Vfs/Sqlfs/StreamWrapper.php index 1356546b1c..ac93cd527f 100644 --- a/api/src/Vfs/Sqlfs/StreamWrapper.php +++ b/api/src/Vfs/Sqlfs/StreamWrapper.php @@ -1852,7 +1852,7 @@ GROUP BY A.fs_id'; { return false; } - if (!$this->check_access($path,Api\Acl::EDIT, $stat)) + if (!$this->check_access($path,Vfs::WRITABLE, $stat)) { return false; // permission denied }