Commit 784f63fc authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#31] Check before view

parent 9f1e575e
......@@ -199,6 +199,8 @@ any '/machine/manage/*html' => sub {
get '/machine/view/*.html' => sub {
my $c = shift;
return $c->redirect_to('/login') if !_logged_in($c);
return view_machine($c);
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment