diff options
author | Vinzenz <vinzenz.rosenkranz@gmail.com> | 2016-03-15 04:47:36 +0300 |
---|---|---|
committer | Vinzenz <vinzenz.rosenkranz@gmail.com> | 2016-03-15 04:47:36 +0300 |
commit | 0d7d995de33e4a4bdbefee65dc077147aa4e57d9 (patch) | |
tree | 39fd7629b5567bc0944a2ca766ac0fe287532c54 /controller | |
parent | 6f305b50486c84857f1a34a5e9a570fbe67740ea (diff) |
redirect to login before error page
Diffstat (limited to 'controller')
-rw-r--r-- | controller/pagecontroller.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php index 95fdf8aa..9ce9cafe 100644 --- a/controller/pagecontroller.php +++ b/controller/pagecontroller.php @@ -163,7 +163,10 @@ class PageController extends Controller { $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', []); + } } /** |