-
-
Couldn't load subscription status.
- Fork 4.6k
fix: add missing sharing options to ui and add full-match results #55311
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
Conversation
|
/backport to stable32 |
|
/backport to stable31 |
81fc78d to
80ae8f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐘
| || ($this->shareeEnumerationFullMatchEmail && strtolower($userEmail ?? '') === $lowerSearch)) | ||
| && $lowerSearch !== '' | ||
| && ( | ||
| strtolower($uid) === $lowerSearch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if strcasecmp is better but it seems similar :)
Add missing `matchUserId` method for full-match-autocomplete options and update docs to make it clearer what each options exactly means. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
When searching we need to: 1. check if sharing is limited to groups - if yes only include those - otherwise continue 2. check if there are restrictions to groups or phonebook 3. check if full match is included Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
80ae8f5 to
5c7ca58
Compare
|
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Summary
For restricting autocompletion of sharing we have various options, some of them got forgotten in the Vue migration.
Those are added back to the ui.
Then added the missing method to the share manager, the email and second user dn methods already existed but the user id one was missing. Also improved the doc blocks to make it clearer what those values mean.
Finally this fixes the user plugin to also include full-matches when group enumeration was enabled.
Checklist
3. to review, feature component)stable32)