Skip to content

Commit

Permalink
Pass forceAll also when fetching the members list
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr authored and backportbot[bot] committed May 3, 2021
1 parent d63240b commit bc657d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Service/CirclesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public function detailsCircle($circleUniqueId, $forceAll = false) {
|| $circle->getHigherViewer()
->isLevel(Member::LEVEL_MEMBER)
) {
$this->detailsCircleMembers($circle);
$this->detailsCircleMembers($circle, $forceAll);
$this->detailsCircleLinkedGroups($circle);
$this->detailsCircleFederatedCircles($circle);
}
Expand All @@ -303,8 +303,8 @@ public function detailsCircle($circleUniqueId, $forceAll = false) {
*
* @throws Exception
*/
private function detailsCircleMembers(Circle $circle) {
if ($this->viewerIsAdmin()) {
private function detailsCircleMembers(Circle $circle, $forceAll = false) {
if ($forceAll || $this->viewerIsAdmin()) {
$members = $this->membersRequest->forceGetMembers($circle->getUniqueId(), 0);
} else {
$members = $this->membersRequest->getMembers(
Expand Down

0 comments on commit bc657d9

Please sign in to comment.