Skip to content
Snippets Groups Projects
Commit 3f63f4b6 authored by Robin Appelman's avatar Robin Appelman
Browse files

Only mount the storages for the user once

parent 8de287f2
Branches
No related tags found
No related merge requests found
...@@ -45,6 +45,7 @@ class Filesystem { ...@@ -45,6 +45,7 @@ class Filesystem {
*/ */
static private $defaultInstance; static private $defaultInstance;
static private $usersSetup = array();
/** /**
* classname which used for hooks handling * classname which used for hooks handling
...@@ -321,7 +322,10 @@ class Filesystem { ...@@ -321,7 +322,10 @@ class Filesystem {
if ($user == '') { if ($user == '') {
$user = \OC_User::getUser(); $user = \OC_User::getUser();
} }
$parser = new \OC\ArrayParser(); if (isset(self::$usersSetup[$user])) {
return;
}
self::$usersSetup[$user] = true;
$root = \OC_User::getHome($user); $root = \OC_User::getHome($user);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment