From 90773f50eedb55aa1a27ebe21431ea87472946e2 Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 24 May 2021 22:31:33 -0400 Subject: Don't redirect due to no active character unless a user is logged in --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 81e07da..0ea8f47 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -8,7 +8,7 @@ class ApplicationController < ActionController::Base end def redirect_if_no_active_character - redirect_to new_character_path unless current_char + redirect_to new_character_path unless current_user.nil? || current_char end def roll(sides) -- cgit v1.2.3