Skip to content

Commit cdde25f

Browse files
mejo-backportbot[bot]
authored andcommitted
fix(LocalController): Allow to still get full details of members
PR #1969 broke members management in Collectives. Collectives needs the initiator of a request to check if the current user is an (inherited) member of non-user members (like circles and groups). Signed-off-by: Jonas <jonas@freesources.org>
1 parent eb01437 commit cdde25f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Controller/LocalController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,16 @@ public function probeCircles(int $limit = -1, int $offset = 0): DataResponse {
479479
* @NoAdminRequired
480480
*
481481
* @param string $circleId
482+
* @param bool $fullDetails
482483
*
483484
* @return DataResponse
484485
* @throws OCSException
485486
*/
486-
public function members(string $circleId): DataResponse {
487+
public function members(string $circleId, bool $fullDetails = false): DataResponse {
487488
try {
488489
$this->setCurrentFederatedUser();
489490

490-
return new DataResponse($this->serializeArray($this->memberService->getMembers($circleId)));
491+
return new DataResponse($this->serializeArray($this->memberService->getMembers($circleId, $fullDetails)));
491492
} catch (Exception $e) {
492493
$this->e($e, ['circleId' => $circleId]);
493494
throw new OCSException($e->getMessage(), (int)$e->getCode());

0 commit comments

Comments
 (0)