Skip to content

Commit

Permalink
Merge pull request #3433 from nextcloud/fix/noid/ignore-inshare-on-occ
Browse files Browse the repository at this point in the history
ignore inShare from cli
  • Loading branch information
ArtificialOwl authored Nov 19, 2024
2 parents 8191a92 + 28b1548 commit 4be5cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mount/MountProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,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([
Expand Down

0 comments on commit 4be5cb0

Please sign in to comment.