-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a sharing option to restrict autocompletion for users in different groups #27849
Comments
With a bit of hope the methods that @tomneedham added recently might be reusable for this. Might need to extend them to also have an option |
The way I understand it we need to extend the ShareesController to check for the new option. If the new option is set "Restrict autocomplete to group memberships", just use This + unit tests I think 1md might be enough. |
What about group name autocompletion ? I assume the new option will also only display autocomplete results for groups the user is a member of. And entering a full group name still allows sharing. |
Implementation: 10 minutes. Writing tests, one full day ;-) PR here #27869 (tests still to be written) |
Let's do it |
there are only 4 test cases, all added a unit tests and integration tests: #27869 however there might be other things to test, find out like what happens when you combine the new option with any of the old options... |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
As an admin I want to restrict my users to only find other users that share group membership of at least one group in the sharing dialog. Users should still be able to share with users that they don't share group membership with if they know the exact username / mail address.
Basically we need to copy the sharing restriction 'Restrict users to only share with users in their groups' and enable sharing.
Please make it a suboption of 'Allow username autocompletion in share dialog. If this is disabled the full username needs to be entered.'
The text was updated successfully, but these errors were encountered: