Add superuser config for prefix autocomplete setting

This commit is contained in:
Joseph Schorr 2017-09-12 15:57:57 -04:00
parent c6aad5fef0
commit c105123ad4
2 changed files with 12 additions and 0 deletions

View file

@ -1239,6 +1239,17 @@
</div>
</td>
</tr>
<tr>
<td class="non-input">Prefix username autocompletion:</td>
<td colspan="2">
<div class="config-bool-field" binding="config.FEATURE_PARTIAL_USER_AUTOCOMPLETE">
Allow prefix username autocompletion
</div>
<div class="help-text">
If disabled, autocompletion for users will only match on exact usernames.
</div>
</td>
</tr>
<tr ng-show="config.FEATURE_MAILING">
<td class="non-input">Team Invitations:</td>
<td colspan="2">

View file

@ -20,6 +20,7 @@ def add_enterprise_config_defaults(config_obj, current_secret_key, hostname):
config_obj['FEATURE_CHANGE_TAG_EXPIRATION'] = config_obj.get('FEATURE_CHANGE_TAG_EXPIRATION',
True)
config_obj['FEATURE_DIRECT_LOGIN'] = config_obj.get('FEATURE_DIRECT_LOGIN', True)
config_obj['FEATURE_PARTIAL_USER_AUTOCOMPLETE'] = config_obj.get('FEATURE_PARTIAL_USER_AUTOCOMPLETE', True)
# Default features that are off.
config_obj['FEATURE_MAILING'] = config_obj.get('FEATURE_MAILING', False)