Merge pull request #32141 from nextcloud/backport/32084/stable24

[stable24] only need to setup root for groupfolders
This commit is contained in:
blizzz 2022-04-26 11:11:00 +02:00 committed by GitHub
commit dd93df22f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {