Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_accesscontrol.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-07-08 18:52:58 +0300
committerRobin Appelman <robin@icewind.nl>2022-07-08 18:52:58 +0300
commitce5f3c298ade46dd9672068f76bcc533792ef509 (patch)
treea2fd46c12c0cb661c117699af4eac647dccb1dd9
parent9c3fed9d383f65a51869d110005291d0a1f61515 (diff)
don't apply access control wrapper on the root mount
-rw-r--r--lib/AppInfo/Application.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index 4d9cfc2..0406f69 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -55,7 +55,7 @@ class Application extends App implements IBootstrap {
* @return StorageWrapper|IStorage
*/
public function addStorageWrapperCallback($mountPoint, IStorage $storage) {
- if (!OC::$CLI && !$storage->instanceOfStorage(SharedStorage::class)) {
+ if (!OC::$CLI && !$storage->instanceOfStorage(SharedStorage::class) && $mountPoint !== '/') {
/** @var Operation $operation */
$operation = $this->getContainer()->get(Operation::class);
return new StorageWrapper([