Skip to content

Commit

Permalink
Lowercase roles in groups
Browse files Browse the repository at this point in the history
  • Loading branch information
martijncasteel committed Mar 18, 2016
1 parent b23581f commit 33d50a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admins/settings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 33d50a8

Please sign in to comment.