|
@@ -44,15 +44,15 @@
|
|
|
<label for="settingForm[security:registrationMode]" class="col-xs-3 control-label">{{ t('Basic authentication') }}</label>
|
|
<label for="settingForm[security:registrationMode]" class="col-xs-3 control-label">{{ t('Basic authentication') }}</label>
|
|
|
<div class="col-xs-3">
|
|
<div class="col-xs-3">
|
|
|
<label for="">ID</label>
|
|
<label for="">ID</label>
|
|
|
- <input class="form-control" type="text" name="settingForm[security:basicName]" value="{{ settingForm['security:basicName']|default('') }}" autocomplete="nope" {% if not isAclEnabled %}readonly{% endif%}>
|
|
|
|
|
|
|
+ <input class="form-control" type="text" name="settingForm[security:basicName]" value="{{ getConfig('crowi', 'security:basicName') | default('') }}" autocomplete="nope" {% if not aclService.getIsPublicWikiOnly() %}readonly{% endif%}>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-xs-3">
|
|
<div class="col-xs-3">
|
|
|
<label for="">{{ t('Password') }}</label>
|
|
<label for="">{{ t('Password') }}</label>
|
|
|
- <input class="form-control" type="text" name="settingForm[security:basicSecret]" value="{{ settingForm['security:basicSecret']|default('') }}" autocomplete="nope" {% if not isAclEnabled %}readonly{% endif%}>
|
|
|
|
|
|
|
+ <input class="form-control" type="text" name="settingForm[security:basicSecret]" value="{{ getConfig('crowi', 'security:basicSecret') | default('') }}" autocomplete="nope" {% if not aclService.getIsPublicWikiOnly() %}readonly{% endif%}>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-xs-offset-3 col-xs-9">
|
|
<div class="col-xs-offset-3 col-xs-9">
|
|
|
<p class="help-block small">
|
|
<p class="help-block small">
|
|
|
- {% if not isAclEnabled %}
|
|
|
|
|
|
|
+ {% if not aclService.getIsPublicWikiOnly() %}
|
|
|
{{ t("security_setting.basic_acl_disable") }}<br>
|
|
{{ t("security_setting.basic_acl_disable") }}<br>
|
|
|
{% else %}
|
|
{% else %}
|
|
|
{{ t("security_setting.common_authentication") }}<br>
|
|
{{ t("security_setting.common_authentication") }}<br>
|
|
@@ -65,9 +65,9 @@
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<label for="settingForm[security:restrictGuestMode]" class="col-xs-3 control-label">{{ t('Guest users access') }}</label>
|
|
<label for="settingForm[security:restrictGuestMode]" class="col-xs-3 control-label">{{ t('Guest users access') }}</label>
|
|
|
<div class="col-xs-6">
|
|
<div class="col-xs-6">
|
|
|
- <select class="form-control selectpicker" name="settingForm[security:restrictGuestMode]" value="{{ settingForm['security:restrictGuestMode'] }}">
|
|
|
|
|
|
|
+ <select class="form-control selectpicker" name="settingForm[security:restrictGuestMode]" value="{{ getConfig('crowi', 'security:restrictGuestMode') }}">
|
|
|
{% for modeValue, modeLabel in consts.restrictGuestMode %}
|
|
{% for modeValue, modeLabel in consts.restrictGuestMode %}
|
|
|
- <option value="{{ t(modeValue) }}" {% if modeValue == settingForm['security:restrictGuestMode'] %}selected{% endif %} >{{ t(modeLabel) }}</option>
|
|
|
|
|
|
|
+ <option value="{{ t(modeValue) }}" {% if modeValue == getConfig('crowi', 'security:restrictGuestMode') %}selected{% endif %} >{{ t(modeLabel) }}</option>
|
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
@@ -76,9 +76,9 @@
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<label for="settingForm[security:registrationMode]" class="col-xs-3 control-label">{{ t('Register limitation') }}</label>
|
|
<label for="settingForm[security:registrationMode]" class="col-xs-3 control-label">{{ t('Register limitation') }}</label>
|
|
|
<div class="col-xs-6">
|
|
<div class="col-xs-6">
|
|
|
- <select class="form-control selectpicker" name="settingForm[security:registrationMode]" value="{{ settingForm['security:registrationMode'] }}">
|
|
|
|
|
|
|
+ <select class="form-control selectpicker" name="settingForm[security:registrationMode]" value="{{ getConfig('crowi', 'security:registrationMode') }}">
|
|
|
{% for modeValue, modeLabel in consts.registrationMode %}
|
|
{% for modeValue, modeLabel in consts.registrationMode %}
|
|
|
- <option value="{{ t(modeValue) }}" {% if modeValue == settingForm['security:registrationMode'] %}selected{% endif %} >{{ t(modeLabel) }}</option>
|
|
|
|
|
|
|
+ <option value="{{ t(modeValue) }}" {% if modeValue == getConfig('crowi', 'security:registrationMode') %}selected{% endif %} >{{ t(modeLabel) }}</option>
|
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
</select>
|
|
</select>
|
|
|
<p class="help-block small">{{ t('The contents entered here will be shown in the header etc') }}</p>
|
|
<p class="help-block small">{{ t('The contents entered here will be shown in the header etc') }}</p>
|
|
@@ -88,7 +88,7 @@
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<label for="settingForm[security:registrationWhiteList]" class="col-xs-3 control-label">{{ t('The whitelist of registration permission E-mail address') }}</label>
|
|
<label for="settingForm[security:registrationWhiteList]" class="col-xs-3 control-label">{{ t('The whitelist of registration permission E-mail address') }}</label>
|
|
|
<div class="col-xs-8">
|
|
<div class="col-xs-8">
|
|
|
- <textarea class="form-control" type="textarea" name="settingForm[security:registrationWhiteList]" placeholder="{{ t('security_setting.example') }}: @growi.org">{{ settingForm['security:registrationWhiteList']|join('
')|raw }}</textarea>
|
|
|
|
|
|
|
+ <textarea class="form-control" type="textarea" name="settingForm[security:registrationWhiteList]" placeholder="{{ t('security_setting.example') }}: @growi.org">{{ getConfig('crowi', 'security:registrationWhiteList') | join('
') | raw }}</textarea>
|
|
|
<p class="help-block small">{{ t("security_setting.restrict_emails") }}{{ t("security_setting.for_instance") }}<code>@growi.org</code>{{ t("security_setting.only_those") }}<br>
|
|
<p class="help-block small">{{ t("security_setting.restrict_emails") }}{{ t("security_setting.for_instance") }}<code>@growi.org</code>{{ t("security_setting.only_those") }}<br>
|
|
|
{{ t("security_setting.insert_single") }}</p>
|
|
{{ t("security_setting.insert_single") }}</p>
|
|
|
</div>
|
|
</div>
|
|
@@ -96,7 +96,7 @@
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
{% set configName = 'settingForm[security:list-policy:hideRestrictedByOwner]' %}
|
|
{% set configName = 'settingForm[security:list-policy:hideRestrictedByOwner]' %}
|
|
|
- {% set configValue = settingForm['security:list-policy:hideRestrictedByOwner'] %}
|
|
|
|
|
|
|
+ {% set configValue = getConfig('crowi', 'security:list-policy:hideRestrictedByOwner') %}
|
|
|
{% set isEnabled = !configValue %}
|
|
{% set isEnabled = !configValue %}
|
|
|
<label for="{{configName}}" class="col-xs-3 control-label">{{ t("security_setting.page_listing_1") }}</label>
|
|
<label for="{{configName}}" class="col-xs-3 control-label">{{ t("security_setting.page_listing_1") }}</label>
|
|
|
<div class="col-xs-9">
|
|
<div class="col-xs-9">
|
|
@@ -117,7 +117,7 @@
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
{% set configName = 'settingForm[security:list-policy:hideRestrictedByGroup]' %}
|
|
{% set configName = 'settingForm[security:list-policy:hideRestrictedByGroup]' %}
|
|
|
- {% set configValue = settingForm['security:list-policy:hideRestrictedByGroup'] %}
|
|
|
|
|
|
|
+ {% set configValue = getConfig('crowi', 'security:list-policy:hideRestrictedByGroup') %}
|
|
|
{% set isEnabled = !configValue %}
|
|
{% set isEnabled = !configValue %}
|
|
|
<label for="{{configName}}" class="col-xs-3 control-label">{{ t("security_setting.page_listing_2") }}</label>
|
|
<label for="{{configName}}" class="col-xs-3 control-label">{{ t("security_setting.page_listing_2") }}</label>
|
|
|
<div class="col-xs-9">
|
|
<div class="col-xs-9">
|