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

fix: Avoid failing on public dav URLs #6642

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jan 2, 2025

It seems that the dav plugins are now also called on public share links, so this changes ensure that we do not throw errors as deck is not expecting its classes to be initialized without a user session.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
@@ -88,8 +88,6 @@ public function __construct(
$this->changeHelper = $changeHelper;
$this->activityManager = $activityManager;
$this->eventDispatcher = $eventDispatcher;

$this->assignmentServiceValidator->check(compact('userId'));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine as it is checked in the controller methods

@luka-nextcloud luka-nextcloud merged commit fe1c4e5 into main Jan 3, 2025
37 checks passed
@luka-nextcloud luka-nextcloud deleted the fix/public-dav branch January 3, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants