Skip to content

Commit

Permalink
Merge pull request #3477 from nextcloud/backport/3433/stable29
Browse files Browse the repository at this point in the history
[stable29] ignore inShare from cli
  • Loading branch information
ArtificialOwl authored Dec 11, 2024
2 parents 3fdc6e4 + b82efd0 commit 42aa25b
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 @@ -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([
Expand Down

0 comments on commit 42aa25b

Please sign in to comment.