From 912e48c4ca6bfc23cafd4e0524e99a165eac2ed9 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 18 Nov 2024 08:15:04 -0100 Subject: [PATCH] ignore inShare from cli Signed-off-by: Maxence Lange --- lib/Mount/MountProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Mount/MountProvider.php b/lib/Mount/MountProvider.php index 0085755c3..367f518a9 100644 --- a/lib/Mount/MountProvider.php +++ b/lib/Mount/MountProvider.php @@ -219,7 +219,7 @@ public function getMount( // apply acl before jail if ($acl && $user) { - $inShare = $this->getCurrentUID() === null || $this->getCurrentUID() !== $user->getUID(); + $inShare = !\OC::$CLI && ($this->getCurrentUID() === null || $this->getCurrentUID() !== $user->getUID()); $aclManager ??= $this->aclManagerFactory->getACLManager($user, $this->getRootStorageId()); $aclRootPermissions = $aclManager->getPermissionsForPathFromRules($rootPath, $rootRules); $storage = new ACLStorageWrapper([