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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-04-25 20:35:59 +0300
committerGitHub <noreply@github.com>2022-04-25 20:35:59 +0300
commit6935baa568749b2bdfa62a8effe94088d9555efa (patch)
tree2ab27a9c2abf65f3e94fa091e1a8ca3e663a4ed9
parent59e040269124c18b5effa8bafafccb0856658b5c (diff)
parentb36dfd8f11d070cdbd60194980cc1bec2ef31b7a (diff)
Merge pull request #32084 from nextcloud/root-setup-groupfolders
only need to setup root for groupfolders
-rw-r--r--lib/private/Files/SetupManager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index 98792ed8043..9fb7b030e1d 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -344,7 +344,9 @@ class SetupManager {
* @return IUser|null
*/
private function getUserForPath(string $path) {
- if (substr_count($path, '/') < 2) {
+ if (strpos($path, '/__groupfolders') === 0) {
+ return null;
+ } elseif (substr_count($path, '/') < 2) {
if ($user = $this->userSession->getUser()) {
return $user;
} else {