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
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-07-12 11:12:37 +0300
commit0cf7139b7145611bb3ba59b6e80a98e8cfff6138 (patch)
tree4bdd71b450f1b98983bec317abad9447ce179cdb
parent1dd9def8684413d8cf2d1814da03cc6a561f95cd (diff)
don't apply access control wrapper on the root mountbackport/243/stable22
-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([