Skip to content

Commit

Permalink
ignore personal's ownership requirement
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Jul 11, 2023
1 parent 15e5585 commit a93b730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/CirclesQueryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ public function limitToInheritedMembers(
[CoreQueryBuilder::HELPER],
[
'getData' => $fullDetails,
'filterPersonalCircles' => true,
'includePersonalCircles' => true,
'minimumLevel' => Member::LEVEL_MEMBER
]
);
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/CoreQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ function (string $alias) use ($orXLevelCheck, $minimumLevel) {
$orXLevelCheck->add(
$this->expr()->gte(
$alias . '.level',
$this->createNamedParameter($minimumLevel)
$this->createNamedParameter($minimumLevel, self::PARAM_INT)
)
);
},
Expand Down

0 comments on commit a93b730

Please sign in to comment.