Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bypass user condition on cli #1727

Merged
merged 1 commit into from
Nov 27, 2024
Merged

bypass user condition on cli #1727

merged 1 commit into from
Nov 27, 2024

Conversation

ArtificialOwl
Copy link
Member

bypass initiator check when ran from CLI. this would fix an issue when running ./occ files:transfer-ownership

```
Could not restore share with id 1:Invalid initiator : #0 /home/maxence/sites/nc30/nextcloud/apps/circles/lib/Service/CircleService.php(489): OCA\Circles\Service\FederatedUserService->mustHaveCurrentUser()
#1 /home/maxence/sites/nc30/nextcloud/apps/circles/lib/Api/v1/Circles.php(177): OCA\Circles\Service\CircleService->getCircle()
#2 /home/maxence/sites/nc30/nextcloud/lib/private/Share20/Manager.php(158): OCA\Circles\Api\v1\Circles::detailsCircle()
#3 /home/maxence/sites/nc30/nextcloud/lib/private/Share20/Manager.php(792): OC\Share20\Manager->generalCreateChecks()
#4 /home/maxence/sites/nc30/nextcloud/apps/files/lib/Service/OwnershipTransferService.php(463): OC\Share20\Manager->updateShare()
```

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@ArtificialOwl
Copy link
Member Author

/backport to stable30

@ArtificialOwl
Copy link
Member Author

/backport to stable29

@ArtificialOwl
Copy link
Member Author

/backport to stable28

@ArtificialOwl ArtificialOwl merged commit 57d4915 into master Nov 27, 2024
29 checks passed
@ArtificialOwl ArtificialOwl deleted the fix/noid/bypass-on-cli branch November 27, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants