Skip to content

Commit 8e905eb

Browse files
authored
Merge pull request #801 from nextcloud/bugfix/noid/make-getlink-work
Make getLink work
2 parents 0909b2c + 259030a commit 8e905eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Model/FederatedUser.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,7 @@ public function getMemberships(): array {
310310
* @throws RequestBuilderException
311311
*/
312312
public function getLink(string $singleId, bool $detailed = false): Membership {
313-
$this->getManager()->getLink($this, $singleId, $detailed);
314-
315-
throw new MembershipNotFoundException();
313+
return $this->getManager()->getLink($this, $singleId, $detailed);
316314
}
317315

318316

0 commit comments

Comments
 (0)