Skip to content

Commit 594fb08

Browse files
Merge pull request #1010 from nextcloud/backport/1009/stable23
[stable23] check owner attendance
2 parents dbc94da + 285acd2 commit 594fb08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Model/FederatedUser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ public function import(array $data): IDeserializable {
385385
* @throws OwnerNotFoundException
386386
*/
387387
public function importFromCircle(Circle $circle): self {
388+
if (!$circle->hasOwner()) {
389+
throw new OwnerNotFoundException();
390+
}
391+
388392
$this->setSingleId($circle->getSingleId());
389393

390394
if ($circle->isConfig(Circle::CFG_SINGLE)) {

0 commit comments

Comments
 (0)