Skip to content

Commit

Permalink
hide sensitive data on non membership
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl committed Feb 25, 2021
1 parent 7795563 commit 1a7a3ef
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/Db/MemberRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function getMembers(
): array {
$qb = $this->getMemberSelectSql();
$qb->limitToCircleId($circleId);
$qb->leftJoinCircle($initiator);
$qb->leftJoinCircle($initiator, true);

if (!is_null($remoteInstance)) {
$qb->limitToRemoteInstance($remoteInstance->getInstance(), true);
Expand All @@ -193,10 +193,9 @@ public function getMember(string $memberId, ?FederatedUser $initiator = null): M
$qb->limitToMemberId($memberId);

if (!is_null($initiator)) {
$qb->leftJoinCircle($initiator);
$qb->leftJoinCircle($initiator, true);
}


return $this->getItemFromRequest($qb);
}

Expand Down Expand Up @@ -269,9 +268,7 @@ public function searchMember(Member $member, ?FederatedUser $initiator = null):
$qb->limitToInstance($qb->getInstance($member));
// $qb->limitToSingleId($federatedUser->getSingleId());

if (!is_null($initiator)) {
$qb->leftJoinCircle($initiator);
}
$qb->leftJoinCircle($initiator);

return $this->getItemFromRequest($qb);
}
Expand Down

0 comments on commit 1a7a3ef

Please sign in to comment.