Skip to content

Commit f73fb1f

Browse files
provokateurinCarlSchwan
authored andcommitted
fixup! fix(Share20\Manager): Explicitly setup the filesystem for the user
1 parent 51458a6 commit f73fb1f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

lib/private/Share20/Manager.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use ArrayIterator;
1212
use OC\Core\AppInfo\ConfigLexicon;
1313
use OC\Files\Filesystem;
14-
use OC\Files\SetupManager;
1514
use OC\KnownUser\KnownUserService;
1615
use OC\Share\Constants as ShareConstants;
1716
use OC\Share20\Exception\ProviderException;
@@ -46,7 +45,6 @@
4645
use OCP\Security\IHasher;
4746
use OCP\Security\ISecureRandom;
4847
use OCP\Security\PasswordContext;
49-
use OCP\Server;
5048
use OCP\Share;
5149
use OCP\Share\Events\BeforeShareCreatedEvent;
5250
use OCP\Share\Events\BeforeShareDeletedEvent;
@@ -103,12 +101,6 @@ public function __construct(
103101
// The constructor of LegacyHooks registers the listeners of share events
104102
// do not remove if those are not properly migrated
105103
$this->legacyHooks = new LegacyHooks($this->dispatcher);
106-
107-
$user = $this->userSession->getUser();
108-
if ($user !== null) {
109-
// The VerifyMountPointEvent is required for Talk and Deck, so an explicit FS setup is required for sharing.
110-
Server::get(SetupManager::class)->setupForUser($user);
111-
}
112104
}
113105

114106
/**

0 commit comments

Comments
 (0)