Skip to content

Commit

Permalink
adding external mountpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Sep 29, 2023
1 parent 96ed6ef commit c432339
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Service/LockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ public function canUnlock(LockContext $request, FileLock $current): void {
}

// we need to ignore some filesystem that return current user as file owner
$ignoreFileOwnership = ['OCA\GroupFolders\Mount\MountProvider'];
$ignoreFileOwnership = [
'OCA\GroupFolders\Mount\MountProvider',
'OCA\Files_External\Config\ConfigAdapter'
];
if ($request->getType() === ILock::TYPE_USER
&& $request->getNode()->getOwner()->getUID() === $this->userId
&& !in_array($request->getNode()->getMountPoint()->getMountProvider(), $ignoreFileOwnership)
Expand Down

0 comments on commit c432339

Please sign in to comment.