summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-03-23 15:25:42 +0100
committerToon Claes <toon@gitlab.com>2017-03-23 15:25:42 +0100
commit5058fc67acdde120e673c24555908394c72a343b (patch)
tree444db01345d9b40e3d3d8c02bd6b4da508a92393 /app
parent7bfa5234855e8de996d5c7dff14ad6c19ea9d33b (diff)
downloadgitlab-ce-5058fc67acdde120e673c24555908394c72a343b.tar.gz
Remove redundant code to convert restricted_levels to integers
The ApplicationSetting#restricted_visibility_levels= now takes care of converting string formatted levels to integers.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/admin/application_settings_controller.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/app/controllers/admin/application_settings_controller.rb b/app/controllers/admin/application_settings_controller.rb
index 8d831ffdd70..0bfbe47eb4f 100644
--- a/app/controllers/admin/application_settings_controller.rb
+++ b/app/controllers/admin/application_settings_controller.rb
@@ -45,15 +45,6 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
end
def application_setting_params
- restricted_levels = params[:application_setting][:restricted_visibility_levels]
- if restricted_levels.nil?
- params[:application_setting][:restricted_visibility_levels] = []
- else
- restricted_levels.map! do |level|
- level.to_i
- end
- end
-
import_sources = params[:application_setting][:import_sources]
if import_sources.nil?
params[:application_setting][:import_sources] = []