Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
Merge pull request #174 from drubin/auth-for-index
Browse files Browse the repository at this point in the history
Security: authenticate / route as to not leak private dashboard urls
  • Loading branch information
davefp committed Jul 31, 2013
2 parents 60a3ddf + 06ba2ea commit e672d84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dashing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def protected!
end

get '/' do
protected!
begin
redirect "/" + (settings.default_dashboard || first_dashboard).to_s
rescue NoMethodError => e
Expand Down

0 comments on commit e672d84

Please sign in to comment.