From 33d50a86b37137598bb4e0bc65b7d29ab5fbba89 Mon Sep 17 00:00:00 2001 From: Martijn Casteel Date: Fri, 18 Mar 2016 17:20:54 +0100 Subject: [PATCH] Lowercase roles in groups --- app/controllers/admins/settings_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admins/settings_controller.rb b/app/controllers/admins/settings_controller.rb index aa45fc18c..37d9cbb2e 100644 --- a/app/controllers/admins/settings_controller.rb +++ b/app/controllers/admins/settings_controller.rb @@ -10,7 +10,7 @@ def index def create if ['additional_moot_positions', 'additional_committee_positions'].include? params[:setting] - Settings[params[:setting]] = params[:value].split(',') + Settings[params[:setting]] = params[:value].downcase.split(',') elsif ['intro_membership','intro_activities'].include? params[:setting] Settings[params[:setting]] = Activity.where( id: params[:value].split(',').map(&:to_i) ).collect(&:id) render :status => :ok, :json => {