Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Username autocomplete option in admin menue now also toggles autocomp…
…lete for email input (share by e-mail) owncloud#26504

(cherry picked from commit 861011c)
  • Loading branch information
IljaN committed Jan 17, 2017
1 parent e77290d commit 13bd433
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/ajax/share.php
Expand Up @@ -241,7 +241,11 @@
$result = array();
if (isset($_GET['search'])) {
$cm = OC::$server->getContactsManager();
if (!is_null($cm) && $cm->isEnabled()) {

$userEnumerationAllowed = OC::$server->getConfig()
->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'no') == 'yes';

if (!is_null($cm) && $cm->isEnabled() && $userEnumerationAllowed) {
$contacts = $cm->search((string)$_GET['search'], array('FN', 'EMAIL'));
foreach ($contacts as $contact) {
if (!isset($contact['EMAIL'])) {
Expand Down

0 comments on commit 13bd433

Please sign in to comment.