mirror of
https://github.com/netzbegruenung/circles.git
synced 2024-05-04 04:43:41 +02:00
Merge pull request #1009 from nextcloud/fix/noid/check-owner-attendance
check owner attendance
This commit is contained in:
commit
78856e193d
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue