Merge pull request #1009 from nextcloud/fix/noid/check-owner-attendance

check owner attendance
This commit is contained in:
Maxence Lange 2022-04-13 11:24:53 -01:00 committed by GitHub
commit 78856e193d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -385,6 +385,10 @@ class FederatedUser extends ManagedModel implements
* @throws OwnerNotFoundException
*/
public function importFromCircle(Circle $circle): self {
if (!$circle->hasOwner()) {
throw new OwnerNotFoundException();
}
$this->setSingleId($circle->getSingleId());
if ($circle->isConfig(Circle::CFG_SINGLE)) {