Fix redirect when trying to vote when already voted
This commit is contained in:
parent
f58a6235f4
commit
1cdbec7d5e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue