Skip to content

fix(files_sharing): Allow access to shares by disabled users if hide_disabled_user_shares is enabled - #62092

Merged
provokateurin merged 1 commit into
masterfrom
fix/files_sharing/disable-user-share-access-config
Jul 14, 2026
Merged

fix(files_sharing): Allow access to shares by disabled users if hide_disabled_user_shares is enabled#62092
provokateurin merged 1 commit into
masterfrom
fix/files_sharing/disable-user-share-access-config

Conversation

@provokateurin

Copy link
Copy Markdown
Member

No description provided.

@provokateurinprovokateurin added this to the Nextcloud 35 milestone Jul 14, 2026
@provokateurin
provokateurin requested a review from a team as a code ownerJuly 14, 2026 13:04
@provokateurin
provokateurin requested review from Altahrim, icewind1991, leftybournes and salmart-dev and removed request for a teamJuly 14, 2026 13:04
@provokateurinprovokateurin added bug 3. to review Waiting for reviews labels Jul 14, 2026
…disabled_user_shares is enabled
Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin
provokateurinforce-pushed the fix/files_sharing/disable-user-share-access-config branch from 24f227f to 950db4cCompareJuly 14, 2026 13:33
@provokateurin
provokateurin merged commit c762444 into masterJul 14, 2026
269 of 275 checks passed
@provokateurin
provokateurin deleted the fix/files_sharing/disable-user-share-access-config branch July 14, 2026 17:53
@provokateurin

Copy link
Copy Markdown
MemberAuthor

/backport to stable34 please

@provokateurin

Copy link
Copy Markdown
MemberAuthor

/backport to stable33 please

@provokateurin

Copy link
Copy Markdown
MemberAuthor

/backport to stable32 please

@provokateurin

Copy link
Copy Markdown
MemberAuthor

/backport to stable31 please

@provokateurin

Copy link
Copy Markdown
MemberAuthor

/backport to stable30 please

@grembo

Copy link
Copy Markdown

Without mentioning it in the commit message, this changed the default value of hide_disabled_user_shares from no to yes. After upgrading, internally shared folders of disabled users disappeared.

This could be rectified by running

./occ config:app:set files_sharing hide_disabled_user_shares --value no

Documentation at https://github.com/nextcloud/documentation/blob/master/admin_manual/configuration_user/user_configuration.rst#disable-and-enable-users needs to be adapted and this should be mentioned in release notes.

@grembo

Copy link
Copy Markdown

If I understand the change correctly, it actually removes the option of disabling access to external links/shares of disabled users while maintaining access to internal shares (which was the previous default). Now, in order to keep access to internally shared folders, external access is also granted. IMHO this is suboptimal. I think a better solution would be to introduce a new configuration setting hide_disabled_user_external_shares which defaults to yes and restore the previous meaning and default of hide_disabled_user_shares.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@provokateurin@grembo@AndyScherzinger@kesselb