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
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-04-22 18:40:50 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-04-25 20:39:29 +0300
commitaae1769e60c0b92a7813cbaa378108d0d7004e42 (patch)
tree0f8e46a80e2c3804c76f117cf26a93e6480ddeeb /lib
parentff64a731b07993e58d42d27d223fce8d74919edd (diff)
Only need to setup root for groupfoldersbackport/32084/stable24
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-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 {