summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 75ed59418d0..cc0096d6dbf 100644
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -222,8 +222,8 @@ class OC_Mount_Config {
/** @var IConfigHandler[] $handlers */
$handlers = $backendService->getConfigHandlers();
foreach ($handlers as $handler) {
- if ($handler instanceof UserContext) {
- $handler->setUser($user);
+ if ($handler instanceof UserContext && $userId !== null) {
+ $handler->setUserId($userId);
}
$input = $handler->handle($input);
}