Skip to content

Commit bca49e5

Browse files
committed
fix for transferring ownership of groupfolders
Signed-off-by: Vanessa Pertsch <vanessa.pertsch@nextcloud.com>
1 parent 8bcba22 commit bca49e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/lib/Controller/TransferOwnershipController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function transfer(string $recipient, string $path): DataResponse {
9797
return new DataResponse([], Http::STATUS_BAD_REQUEST);
9898
}
9999

100-
if ($node->getOwner()->getUID() !== $this->userId) {
100+
if ($node->getOwner()->getUID() !== $this->userId || !$node->getStorage()->instanceOfStorage(IHomeStorage::class)) {
101101
return new DataResponse([], Http::STATUS_FORBIDDEN);
102102
}
103103

0 commit comments

Comments
 (0)