]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add a hint that the settings are OR based
authorJoas Schilling <coding@schilljs.com>
Wed, 10 Mar 2021 14:17:36 +0000 (15:17 +0100)
committerJoas Schilling <coding@schilljs.com>
Thu, 11 Mar 2021 07:40:20 +0000 (08:40 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/settings/js/admin.js
apps/settings/templates/settings/admin/sharing.php

index 72b167d7e0d7129ee02d8872adfe67ae1efba156..ba6b480c79d30a4054ab878f71be8f3a69e5378b 100644 (file)
@@ -145,6 +145,7 @@ window.addEventListener('DOMContentLoaded', function(){
        $('#shareapi_allow_share_dialog_user_enumeration').on('change', function() {
                $('#shareapi_restrict_user_enumeration_to_group_setting').toggleClass('hidden', !this.checked);
                $('#shareapi_restrict_user_enumeration_to_phone_setting').toggleClass('hidden', !this.checked);
+               $('#shareapi_restrict_user_enumeration_combinewarning_setting').toggleClass('hidden', !this.checked);
        })
 
        $('#allowLinks').change(function() {
index b02a7d2764ca1bd37d13d2cbff273fa99e6392b0..a72bf0bd590c5b74bf023cf7b487d587b1570393 100644 (file)
 } ?> />
                <label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phonebook matches'));?></label><br />
        </p>
+       <p id="shareapi_restrict_user_enumeration_combinewarning_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
+       p('hidden');
+}?>">
+               <em><?php p($l->t('If autocompletion "same group" and "phonebook matches" are enabled a match in either is enough to show the user.'));?></em><br />
+       </p>
 
        <p>
                <input type="checkbox" id="publicShareDisclaimer" class="checkbox noJSAutoUpdate"