Skip to content

fix(restrictions): Apply the app config overwrite to the typed getters - #1664

Merged
CarlSchwan merged 2 commits into
nextcloud:mainfrom
solracsf:fix/appconfig-overwrite-typed-getters
Aug 21, 2026
Merged

CarlSchwan merged 2 commits into
nextcloud:mainfrom
solracsf:fix/appconfig-overwrite-typed-getters

Conversation

@solracsf

Copy link
Copy Markdown
Member

AppConfigOverwrite only overrode the deprecated getValue(). Server code has since moved to the typed getters, so the overwrite that lateSetupRestrictions() installs to force shareapi_only_share_with_group_members when "Hide other accounts from guests" is enabled was silently ignored by them.

Most notably OC\Collaboration\Collaborators\UserPlugin reads the option with getValueString(), so the share recipient autocompletion offered guests every account of the instance instead of only the members of their own groups. OCA\Guests\Config::isSharingRestrictedToGroup() reads it with getValueBool() and was equally unaffected by the overwrite.

@solracsf solracsf added bug Something isn't working 3. to review Waiting for reviews labels Aug 16, 2026
solracsf and others added 2 commits August 21, 2026 10:43
AppConfigOverwrite only overrode the deprecated getValue(). Server code
has since moved to the typed getters, so the overwrite that
lateSetupRestrictions() installs to force
`shareapi_only_share_with_group_members` when "Hide other accounts from
guests" is enabled was silently ignored by them.

Most notably OC\Collaboration\Collaborators\UserPlugin reads the option
with getValueString(), so the share recipient autocompletion offered
guests every account of the instance instead of only the members of
their own groups. OCA\Guests\Config::isSharingRestrictedToGroup() reads
it with getValueBool() and was equally unaffected by the overwrite.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwan force-pushed the fix/appconfig-overwrite-typed-getters branch from e1cb047 to 4d53f9d Compare August 21, 2026 08:43
@CarlSchwan
CarlSchwan enabled auto-merge August 21, 2026 08:44
@CarlSchwan
CarlSchwan merged commit e9d2340 into nextcloud:main Aug 21, 2026
55 checks passed
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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 bug Something isn't working feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants