lib/Controller/AdminController.php 1 location
|
@@ 468-477 (lines=10) @@
|
| 465 |
|
* @return DataResponse |
| 466 |
|
* @throws OCSException |
| 467 |
|
*/ |
| 468 |
|
public function link(string $emulated, string $circleId, string $singleId): DataResponse { |
| 469 |
|
try { |
| 470 |
|
$this->setLocalFederatedUser($emulated); |
| 471 |
|
$membership = $this->membershipService->getMembership($circleId, $singleId); |
| 472 |
|
|
| 473 |
|
return new DataResponse($this->serialize($membership)); |
| 474 |
|
} catch (Exception $e) { |
| 475 |
|
throw new OCSException($e->getMessage(), $e->getCode()); |
| 476 |
|
} |
| 477 |
|
} |
| 478 |
|
|
| 479 |
|
|
| 480 |
|
/** |
lib/Controller/LocalController.php 1 location
|
@@ 526-535 (lines=10) @@
|
| 523 |
|
* @return DataResponse |
| 524 |
|
* @throws OCSException |
| 525 |
|
*/ |
| 526 |
|
public function link(string $circleId, string $singleId): DataResponse { |
| 527 |
|
try { |
| 528 |
|
$this->setCurrentFederatedUser(); |
| 529 |
|
$membership = $this->membershipService->getMembership($circleId, $singleId); |
| 530 |
|
|
| 531 |
|
return new DataResponse($this->serialize($membership)); |
| 532 |
|
} catch (Exception $e) { |
| 533 |
|
throw new OCSException($e->getMessage(), $e->getCode()); |
| 534 |
|
} |
| 535 |
|
} |
| 536 |
|
|
| 537 |
|
|
| 538 |
|
/** |