Skip to content

Commit

Permalink
Merge pull request #1727 from nextcloud/fix/noid/bypass-on-cli
Browse files Browse the repository at this point in the history
bypass user condition on cli
  • Loading branch information
ArtificialOwl authored Nov 27, 2024
2 parents 37e7f55 + 284b88c commit 57d4915
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 57d4915

Please sign in to comment.