Skip to content

Commit

Permalink
Merge pull request #2098 from nextcloud/fix/remote-instance-dav
Browse files Browse the repository at this point in the history
Fix accessing groupfolders from remote instance
  • Loading branch information
PVince81 committed Sep 22, 2022
2 parents feea9b6 + 0026135 commit 8ad52b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/DAV/ACLPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public function __construct(

private function isAdmin(string $path): bool {
$folderId = $this->folderManager->getFolderByPath($path);
if ($this->user === null) {
// Happens when sharing with a remote instance
return false;
}
return $this->folderManager->canManageACL($folderId, $this->user);
}

Expand Down

0 comments on commit 8ad52b8

Please sign in to comment.