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

watermark & anonymous users #1040

Closed
gadkin opened this issue Nov 13, 2024 · 1 comment
Closed

watermark & anonymous users #1040

gadkin opened this issue Nov 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gadkin
Copy link

gadkin commented Nov 13, 2024

If watermarks enabled, anonymous users cant open files in nextcloud on shared links. Logged in users can open files normaly.
Error in logs:
Exception OCA\DAV\CalDAV\TimezoneService::getUserTimezone(): Argument #1 ($userId) must be of type string, null given, called in /var/www/nextcloud/apps/onlyoffice/lib/Controller/EditorApiController.php on line 846 in file '/var/www/nextcloud/apps/dav/lib/CalDAV/TimezoneService.php' line 28

As workaround i edited line 846 in EditorApiController.php:
was
$timezone = $this->timezoneService->getUserTimezone($userId) ?? $this->timezoneService->getDefaultTimezone();
edited
$timezone = $this->timezoneService->getDefaultTimezone();

OO connector ver 9.5.0.

@LinneyS LinneyS added the bug Something isn't working label Nov 28, 2024
@LinneyS
Copy link
Member

LinneyS commented Nov 29, 2024

@gadkin
Thank you
Done
ab78271

@LinneyS LinneyS closed this as completed Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants