Skip to content

Commit 4be5cb0

Browse files
Merge pull request #3433 from nextcloud/fix/noid/ignore-inshare-on-occ
ignore inShare from cli
2 parents 8191a92 + 28b1548 commit 4be5cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Mount/MountProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function getMount(
169169

170170
// apply acl before jail
171171
if ($acl && $user) {
172-
$inShare = $this->getCurrentUID() === null || $this->getCurrentUID() !== $user->getUID();
172+
$inShare = !\OC::$CLI && ($this->getCurrentUID() === null || $this->getCurrentUID() !== $user->getUID());
173173
$aclManager ??= $this->aclManagerFactory->getACLManager($user, $this->getRootStorageId());
174174
$aclRootPermissions = $aclManager->getPermissionsForPathFromRules($rootPath, $rootRules);
175175
$storage = new ACLStorageWrapper([

0 commit comments

Comments
 (0)