Explorar el Código

delete Not necessary things

itizawa hace 6 años
padre
commit
39b9986cff
Se han modificado 2 ficheros con 0 adiciones y 32 borrados
  1. 0 11
      src/server/models/config.js
  2. 0 21
      src/server/views/admin/customize.html

+ 0 - 11
src/server/models/config.js

@@ -112,7 +112,6 @@ module.exports = function(crowi) {
       'customize:behavior' : 'crowi',
       'customize:layout' : 'crowi',
       'customize:isEnabledTimeline' : true,
-      'customize:isEnabledDeleteCompletely' : false,
       'customize:isSavedStatesOfTabChanges' : true,
       'customize:isEnabledAttachTitleHeader' : false,
       'customize:showRecentCreatedNumber' : 10,
@@ -381,11 +380,6 @@ module.exports = function(crowi) {
     return getValueForCrowiNS(config, key);
   };
 
-  configSchema.statics.isEnabledDeleteCompletely = function(config) {
-    const key = 'security:isEnabledDeleteCompletely';
-    return getValueForCrowiNS(config, key);
-  };
-
   configSchema.statics.isEnabledPlugins = function(config) {
     const key = 'plugin:isEnabledPlugins';
     return getValueForCrowiNS(config, key);
@@ -552,11 +546,6 @@ module.exports = function(crowi) {
     return getValueForCrowiNS(config, key);
   };
 
-  configSchema.statics.isEnabledDeleteCompletely = function(config) {
-    const key = 'isEnabledDeleteCompletely';
-    return getValueForCrowiNS(config, key);
-  };
-
   configSchema.statics.isSavedStatesOfTabChanges = function(config) {
     const key = 'customize:isSavedStatesOfTabChanges';
     return getValueForCrowiNS(config, key);

+ 0 - 21
src/server/views/admin/customize.html

@@ -242,27 +242,6 @@
             </div>
           </div>
 
-          <!-- GC-1755 Change Sentence -->
-          <div class="form-group">
-            <label for="settingForm[customize:isEnabledDeleteCompletely]" class="col-xs-3 control-label">ページを完全削除できるユーザーを制限する</label>
-            <div class="col-xs-9">
-              <div class="btn-group btn-toggle" data-toggle="buttons">
-                <label class="btn btn-default btn-rounded btn-outline {% if settingForm['customize:isEnabledDeleteCompletely'] %}active{% endif %}" data-active-class="primary">
-                  <input name="settingForm[customize:isEnabledDeleteCompletely]" value="true" type="radio"
-                      {% if true === settingForm['customize:isEnabledDeleteCompletely'] %}checked{% endif %}> ON
-                </label>
-                <label class="btn btn-default btn-rounded btn-outline {% if !settingForm['customize:isEnabledDeleteCompletely'] %}active{% endif %}" data-active-class="default">
-                  <input name="settingForm[customize:isEnabledDeleteCompletely]" value="false" type="radio"
-                      {% if !settingForm['customize:isEnabledDeleteCompletely'] %}checked{% endif %}> OFF
-                </label>
-              </div>
-
-              <p class="help-block">
-                ページを完全削除できるユーザーを管理者のみに制限します。
-              </p>
-            </div>
-          </div>
-
           <div class="form-group">
             <label for="settingForm[customize:isSavedStatesOfTabChanges]" class="col-xs-3 control-label">{{ t("customize_page.tab_switch") }}</label>
             <div class="col-xs-9">