Skip to content

Commit

Permalink
Merge pull request #1781 from nextcloud/backport/1727/stable29
Browse files Browse the repository at this point in the history
[stable29] bypass user condition on cli
  • Loading branch information
ArtificialOwl authored Nov 27, 2024
2 parents 8686b77 + fa1229a commit cddb5c9
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 @@ -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();
}
Expand Down

0 comments on commit cddb5c9

Please sign in to comment.