Skip to content

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 [email protected]

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 <[email protected]>
@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