From fa1229a41de100ecb152a48691a4bb06b2248c6a Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 24 Oct 2024 13:20:24 -0100 Subject: [PATCH] bypass user condition on cli Signed-off-by: Maxence Lange --- lib/Api/v1/Circles.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php index 6e5f47695..3fcdf75e3 100644 --- a/lib/Api/v1/Circles.php +++ b/lib/Api/v1/Circles.php @@ -186,8 +186,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(); }