Commit b17cca1d authored by Andrei Gliga's avatar Andrei Gliga

delete the enabled_oauth_sign_in_sources after getting it's value into...

delete the enabled_oauth_sign_in_sources after getting it's value into enabled_oauth_sign_in_sources

just delete enabled_oauth_sign_in_sources and get it's value
parent 8313476f
...@@ -53,14 +53,12 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController ...@@ -53,14 +53,12 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
end end
end end
enabled_oauth_sign_in_sources = params[:application_setting][:enabled_oauth_sign_in_sources] enabled_oauth_sign_in_sources = params[:application_setting].delete(:enabled_oauth_sign_in_sources)
params[:application_setting][:disabled_oauth_sign_in_sources] = params[:application_setting][:disabled_oauth_sign_in_sources] =
AuthHelper.button_based_providers.map(&:to_s) - AuthHelper.button_based_providers.map(&:to_s) -
Array(enabled_oauth_sign_in_sources) Array(enabled_oauth_sign_in_sources)
params[:application_setting].delete(:enabled_oauth_sign_in_sources)
params.require(:application_setting).permit( params.require(:application_setting).permit(
:default_projects_limit, :default_projects_limit,
:default_branch_protection, :default_branch_protection,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment