You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: itineraries_controller.rb
    path of file: ./repos/icare/app/controllers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class ItinerariesController < ApplicationController
  skip_before_action :auth
    
  def check_permissions; end

  def set_itinerary
    @itinerary = Itinerary.friendly.find params[:id]
  end

  def itinerary_params
    params.require(:itinerary).permit(*itinerary_attributes)
  end

  def itinerary_attributes
    allowlist = %i[start_address end_address description num_people smoking_allowed pets_allowed fuel_cost tolls
                   avoid_highways avoid_tolls
                   round_trip leave_date return_date daily
                   route]
    allowlist << :pink if current_user&.female?
    allowlist
  end

  def check_female
    return unless @itinerary.pink?

    if !user_signed_in?
      redirect_to root_path
    elsif !current_user.female?
      redirect_to :dashboard, flash: { error: t('flash.itineraries.error.pink') }
    end
  end