summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-26 16:17:06 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-26 16:17:06 +0100
commitdf0bc9db9cdbf9bfbc92a5f1f00e57fc0e7d7792 (patch)
tree564867b6d12e5cc4ca03d37cf64ea381d3eba967 /app/controllers
parent36919fb419a40688daa97e36734f579488cb56e2 (diff)
Search box in the top navigation bar.
Diffstat (limited to 'app/controllers')
-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