Skip to content

Commit

Permalink
bypass user condition on cli
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl authored and backportbot[bot] committed Nov 27, 2024
1 parent 3e14a66 commit badbe33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Api/v1/Circles.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ public static function joinedCircles($userId = '', $forceAll = false) {
public static function detailsCircle(string $circleUniqueId, bool $forceAll = false): Circle {
/** @var FederatedUserService $federatedUserService */
$federatedUserService = \OC::$server->get(FederatedUserService::class);
if ($forceAll) {
$federatedUserService->bypassCurrentUserCondition($forceAll);
if ($forceAll || \OC::$CLI) {
$federatedUserService->bypassCurrentUserCondition(true);
} else {
$federatedUserService->initCurrentUser();
}
Expand Down

0 comments on commit badbe33

Please sign in to comment.