Fix infinite redirect for '/preferences'

pull/100/head
Omar Roth 7 years ago
parent 4f3d8a8ef6
commit 4c3e865ea2

@ -699,7 +699,7 @@ get "/preferences" do |env|
user = user.as(User) user = user.as(User)
templated "preferences" templated "preferences"
else else
env.redirect referer env.redirect "/"
end end
end end

Loading…
Cancel
Save