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

Hide sharing calendar via link in UI when sharing via link is disabled #4572

Closed
wants to merge 1 commit into from

Conversation

pboguslawski
Copy link
Contributor

This mod hides sharing calendar via link in UI when shareapi_allow_links is disabled. Should be applied together with nextcloud/server#34372

Related: nextcloud/server#34372
Related: #525
Related: #4399
Author-Change-Id: IB#1126264
Signed-off-by: Pawel Boguslawski pawel.boguslawski@ib.pl

This mod hides sharing calendar via link in UI when `shareapi_allow_links` is disabled.
Should be applied together with nextcloud/server#34372

Related: nextcloud/server#34372
Related: nextcloud#525
Related: nextcloud#4399
Author-Change-Id: IB#1126264
Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
@szaimen szaimen added the 3. to review Waiting for reviews label Oct 1, 2022
Copy link
Member

@tcitworld tcitworld left a comment

Choose a reason for hiding this comment

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

You don't need this at all. :)

calendar.canBePublished will be false since it depends on the DAV property
cs:allowed-sharing-modes, which is set by
https://github.com/nextcloud/server/blob/905753be42af7e8c5af304b0d3c93f5d9bcea789/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php#L138

As long as the plugin is unregistered, the value won't be set anymore.
(ref nextcloud/server#34372 (comment))

@pboguslawski
Copy link
Contributor Author

This mod is not required when nextcloud/server#34372 is merged. Thanks for pointing this optimization!

@pboguslawski pboguslawski deleted the main-IB#1126264 branch October 14, 2022 11:31
@pboguslawski
Copy link
Contributor Author

pboguslawski commented Oct 28, 2022

As long as the plugin is unregistered, the value won't be set anymore.

Seems this solution is wrong because unregistering plugin like in nextcloud/server@bfd8c62 disables also possibility to share calendar with other nc users (hidden share icon and user/group list, not just "share via link" option under share menu; this PR is about disabling sharing via link only).

Let us know if you see better solution or we'll return to the original proposition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants