From 06ba2ea902bfd73a9c9437e7f44063b21611edb7 Mon Sep 17 00:00:00 2001 From: David Rubin Date: Wed, 31 Jul 2013 10:49:00 +0200 Subject: [PATCH] Authenticate / route as to not leak private dashboard url --- lib/dashing.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dashing.rb b/lib/dashing.rb index 935a031a..f5b60cad 100644 --- a/lib/dashing.rb +++ b/lib/dashing.rb @@ -56,6 +56,7 @@ def protected! end get '/' do + protected! begin redirect "/" + (settings.default_dashboard || first_dashboard).to_s rescue NoMethodError => e