Skip to content

feat(files-sharing): show pending shares menu only if feature enabled#282

Open
printminion-co wants to merge 3 commits into
masterfrom
feat/hide_pending_shares_menu_if_disabled
Open

feat(files-sharing): show pending shares menu only if feature enabled#282
printminion-co wants to merge 3 commits into
masterfrom
feat/hide_pending_shares_menu_if_disabled

Conversation

@printminion-co

@printminion-co printminion-co commented Jul 17, 2026

Copy link
Copy Markdown

Summary

Currently the "pending shares" is always available if feature enabled or not

Documentation: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html

Selection_20250612-003

Proposal

With this change the "pending shares" will be displayed only if feature is enabled.

"pending shares" menu item is shown on

./occ config:system:set --value true --type boolean -- sharing.enable_share_accept

"pending shares" menu item is removed on

./occ config:system:set --value false --type boolean -- sharing.enable_share_accept

run test via

 phpunit --bootstrap tests/bootstrap.php apps/files_sharing/tests/Listener/LoadAdditionalListenerTest.php
  • Resolves: #

Summary

TODO

Checklist

@printminion-co
printminion-co marked this pull request as draft July 17, 2026 14:08
@printminion-co
printminion-co marked this pull request as ready for review July 17, 2026 15:22
@printminion-co
printminion-co force-pushed the feat/hide_pending_shares_menu_if_disabled branch 4 times, most recently from 7cbb3fa to 9cd18f3 Compare July 24, 2026 09:22
Resolve the share manager through constructor injection instead of
Server::get() so the listener follows the app's dependency-injection
conventions.

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
# menu is removed on
./occ config:system:set --value true --type boolean  -- sharing.enable_share_accept

# menu is shown on
./occ config:system:set --value false --type boolean  -- sharing.enable_share_accept

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
@printminion-co
printminion-co force-pushed the feat/hide_pending_shares_menu_if_disabled branch from 9cd18f3 to a366b5f Compare July 24, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant