Skip to content

Commit

Permalink
ignore inShare from cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialOwl committed Nov 18, 2024
1 parent dffd722 commit 06325e0
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 06325e0

Please sign in to comment.