class CmAdmin::StaticController

def dashboard; end

def dashboard; end

def error_403; end

def error_403; end

def index

def index
  fallback_path = current_user.present? ? "#{CmAdmin::Engine.mount_path}/users" : '/users/sign_in'
  redirect_path = current_user&.cm_role&.default_redirect_path || fallback_path
  redirect_to redirect_path
end