Skip to content

Commit

Permalink
fix for transferring ownership of groupfolders
Browse files Browse the repository at this point in the history
Signed-off-by: Vanessa Pertsch <vanessa.pertsch@nextcloud.com>
  • Loading branch information
vanpertsch committed Apr 26, 2022
1 parent 8bcba22 commit bca49e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/Controller/TransferOwnershipController.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function transfer(string $recipient, string $path): DataResponse {
return new DataResponse([], Http::STATUS_BAD_REQUEST);
}

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

Expand Down

0 comments on commit bca49e5

Please sign in to comment.