Skip to content

Commit

Permalink
Merge pull request #3478 from nextcloud/backport/3433/stable28
Browse files Browse the repository at this point in the history
[stable28] ignore inShare from cli
  • Loading branch information
ArtificialOwl authored Dec 10, 2024
2 parents aedc07c + 912e48c commit 2b53849
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 2b53849

Please sign in to comment.