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.
Comments
Similar requests
Users in groups excluded from sharing can initiate shares if also a member of a non-excluded group
1 vote · 0 comments
Option to permit some users/groups to be excluded from some sharing policies (e.g. public link expiration & mandatory passwords)
1 vote · 0 comments
Option to exclude native groups to share with for security perspective
0 votes · 0 comments
Let only particular users/groups to create public links
0 votes · 0 comments
[Bug]: Group admin view: missing groups and numbers in sidebar
0 votes · 0 comments
No comments yet.