Skip to content

Commit fefeaf6

Browse files
Merge pull request #3541 from nextcloud/backport/3538/stable30
2 parents 82b45c7 + 7b9a75b commit fefeaf6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Mount/GroupFolderStorage.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ public function getFolderId(): int {
3939
* @psalm-suppress FalsableReturnStatement Return type of getOwner is not clear even in server
4040
*/
4141
public function getOwner($path) {
42+
if ($this->mountOwner !== null) {
43+
return $this->mountOwner->getUID();
44+
}
45+
4246
$user = $this->userSession->getUser();
4347
if ($user !== null) {
4448
return $user->getUID();
4549
}
46-
return $this->mountOwner !== null ? $this->mountOwner->getUID() : false;
50+
51+
return false;
4752
}
4853

4954
public function getCache($path = '', $storage = null) {

0 commit comments

Comments
 (0)