summaryrefslogtreecommitdiff
path: root/app/controllers/page_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/page_controller.rb')
-rw-r--r--app/controllers/page_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/page_controller.rb b/app/controllers/page_controller.rb
index ed48e3c..10ecf2c 100644
--- a/app/controllers/page_controller.rb
+++ b/app/controllers/page_controller.rb
@@ -7,6 +7,8 @@ class PageController < ApplicationController
def index
if current_user
redirect_to [current_user.current_tenant, current_user]
+ else
+ redirect_to log_in_path
end
end