Require to be logged in to create a vote
This commit is contained in:
parent
6d6264181e
commit
97d4df395d
1 changed files with 1 additions and 0 deletions
1
vote.rb
1
vote.rb
|
|
@ -95,6 +95,7 @@ post '/logout' do
|
|||
end
|
||||
|
||||
get '/votes/new' do
|
||||
redirect '/login' unless current_user
|
||||
erb :votes_new
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue