FeatureFuel
0

Sharing: "Exclude groups from creating link shares" is applied inconsistently to existing link shares (owner vs. resharer)

Source: nextcloud/server#67368 · opened by @susnux
Description The admin setting "Exclude groups from creating link shares" (shareapi_allow_links_exclude_groups) is applied inconsistently to existing link shares: when a link is opened, only the share owner is checked, never the user who created the link (sharedBy). For reshares these are different users. When a link is created or edited Both the share owner and the sharer are checked. Manager::generalChecks() dispatches a RestrictInteractionEvent for both users: and RestrictInteractionListener refuses link and email shares for users in an excluded group: generalChecks() runs in createShare() and updateShare(), so an excluded user can neither create nor edit links. When a link is opened getShareByToken() → checkShare() only checks the share owner: This check was added in #55811, which fixed #43918 (before, the groups of the logged-in visitor were checked). The PR description says the setting "is intended to restrict share creation, not share access",…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests