Skip to content

Commit

Permalink
Merge pull request #39 from v1r0x/error-msg
Browse files Browse the repository at this point in the history
redirect to login before error page
  • Loading branch information
v1r0x committed Mar 17, 2016
2 parents 42ca230 + 0d7d995 commit 43a4473
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controller/pagecontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ public function gotoPoll($hash) {
$notification = null;
}
if($this->hasUserAccess($poll)) return new TemplateResponse('polls', 'goto.tmpl', ['poll' => $poll, 'dates' => $dates, 'comments' => $comments, 'votes' => $votes, 'notification' => $notification, 'userId' => $this->userId, 'userMgr' => $this->manager, 'urlGenerator' => $this->urlGenerator, 'avatarManager' => $this->avatarManager]);
else return new TemplateResponse('polls', 'no.acc.tmpl', []);
else {
\OCP\User::checkLoggedIn();
return new TemplateResponse('polls', 'no.acc.tmpl', []);
}
}

/**
Expand Down

0 comments on commit 43a4473

Please sign in to comment.