class WelcomeController < ApplicationController
  skip_before_filter :require_user

  access_control :acl do
    allow all
  end

  def index
    session[:return_to] = login_dispatch_path
  end

  def login_dispatch
    if current_user.role == "auditor"
      redirect_to placeholder_path
    else
      redirect_to dashboard_index_path
    end
  end
end

class WelcomeController < ApplicationController
  skip_before_filter :require_user

  access_control :acl do
    allow all
  end

  def index
    session[:return_to] = login_dispatch_path
  end

  def login_dispatch
    if current_user.nil?
      redirect_to :action => :index
    elsif current_user.role == "auditor"
      redirect_to placeholder_path
    else
      redirect_to dashboard_index_path
    end
  end
end

Handle logged-out user in login_dispatch
Handle logged-out user in login_dispatch [story:496657]
