Skip to content
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

[stable8.1] Add option to disable autocomplete in share dialog #18353

Merged
merged 1 commit into from
Aug 19, 2015

Conversation

MorrisJobke
Copy link
Contributor

The master version of this was closed, because the sharing dialog is reworked and should use the OCS API in the future. As this is too much stuff to backport, I ported the previous implementation of this to stable8.1.

@karlitschek Please approve this.

How to test

  • add user "test" with displayname "foo"
  • disable the setting in the sharing settings on the admin page
  • go to the sharing dialog
  • try to share something to "tes" -> nothing shown
  • try to share something to "test" -> "foo" shown
  • try to share something to "tesT" -> "foo" shown
  • try to share something to "fo" -> nothing shown
  • try to share something to "food" -> nothing shown
  • try to share something to "foo" -> "foo" shown
  • try to share something to "Foo" -> "foo" shown

@Xenopathic Can you have a look at the wording of the Web UI config setting?

@nickvergessen @PVince81 @felixboehm Please have a look and review

cc @cdamken It was your request

@@ -379,6 +379,16 @@
}
}

$sharingAutocompletion = \OC::$server->getConfig()
->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app could be files_sharing? This is also where the OCS endpoint is going to live

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the reason it was "core" is because this setting would not only affect file sharing but also calendar, contact sharing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just used the same config option like all other sharing related options. Otherwise I need to write a lot more code to save this setting.

@karlitschek
Copy link
Contributor

makes sense as a backport/stable solution 👍

@ghost
Copy link

ghost commented Aug 17, 2015

🚀 Test PASSed.🚀
chuck

@MorrisJobke
Copy link
Contributor Author

@nickvergessen @PVince81 Please review this

@PVince81
Copy link
Contributor

👍 works

MorrisJobke added a commit that referenced this pull request Aug 19, 2015
[stable8.1] Add option to disable autocomplete in share dialog
@MorrisJobke MorrisJobke merged commit 174c4e3 into stable8.1 Aug 19, 2015
@MorrisJobke MorrisJobke deleted the backport-block-autocomplete branch August 19, 2015 14:16
@MorrisJobke
Copy link
Contributor Author

cc @foobarable

@MorrisJobke
Copy link
Contributor Author

@cmonteroluque @nickvergessen Because #18236 was delayed to 9.0 we need to port this to master (8.2), right?

@MorrisJobke
Copy link
Contributor Author

Updated link, because it was the wrong paste

@nickvergessen
Copy link
Contributor

That is what #18352 took care of

@MorrisJobke
Copy link
Contributor Author

That is what #18352 took care of

Yes, but it is not used in the share drop down in 8.2

@MorrisJobke
Copy link
Contributor Author

Yes, but it is not used in the share drop down in 8.2

I just checked and it works in master. I just thought that the new code isn't used yet. Nevermind. It works. Thanks :)

@nickvergessen
Copy link
Contributor

Well the PR added it to both, first commit was only your commit, second commit was "respect it in the OCS call"

@ghost
Copy link

ghost commented Sep 24, 2015

thanks @MorrisJobke

@lock lock bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants