diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-10-11 16:28:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 16:28:16 +0300 |
commit | b529162285355f50bdee14e4b1298815610de647 (patch) | |
tree | 10069fb901311b812e35785ddfe6569c1e8d706d | |
parent | 3581688be828eb282432158c992efb9ed4e603cc (diff) | |
parent | d6dad170d449bb7ab2492307e5582edf93e53f1b (diff) |
Merge pull request #2122 from nextcloud/backport/2098/stable25
[stable25] Fix accessing groupfolders from remote instance
-rw-r--r-- | lib/DAV/ACLPlugin.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/DAV/ACLPlugin.php b/lib/DAV/ACLPlugin.php index 963f772f..68aa7761 100644 --- a/lib/DAV/ACLPlugin.php +++ b/lib/DAV/ACLPlugin.php @@ -63,6 +63,10 @@ class ACLPlugin extends ServerPlugin { 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); } |