Fix redirect when trying to vote when already voted

This commit is contained in:
Les De Ridder 2018-10-22 22:36:43 +02:00
parent f58a6235f4
commit 1cdbec7d5e
1 changed files with 1 additions and 4 deletions

View File

@ -216,10 +216,7 @@ class PollController extends Controller
}
if($this->hasVoted($request, $poll)) {
return view('view_poll')
->with('poll', $poll)
->with('new', false)
->with('hasVoted', true);
return redirect()->action('PollController@view', ['poll' => $poll]);
}
if($poll->allow_multiple_answers) {