Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-11 16:28:16 +0300
committerGitHub <noreply@github.com>2022-10-11 16:28:16 +0300
commitb529162285355f50bdee14e4b1298815610de647 (patch)
tree10069fb901311b812e35785ddfe6569c1e8d706d
parent3581688be828eb282432158c992efb9ed4e603cc (diff)
parentd6dad170d449bb7ab2492307e5582edf93e53f1b (diff)
Merge pull request #2122 from nextcloud/backport/2098/stable25
[stable25] Fix accessing groupfolders from remote instance
-rw-r--r--lib/DAV/ACLPlugin.php4
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);
}