diff options
author | v1r0x <vinzenz.rosenkranz@gmail.com> | 2016-03-17 03:06:59 +0300 |
---|---|---|
committer | v1r0x <vinzenz.rosenkranz@gmail.com> | 2016-03-17 03:06:59 +0300 |
commit | 43a4473c7d3efed8990453f11e368d2d4ede9d0c (patch) | |
tree | 8a4c30f40c736ad53c797b934d7de01aa4addb79 /controller | |
parent | 42ca2301ba06ef550ed8c451803c9c5366c5e1c8 (diff) | |
parent | 0d7d995de33e4a4bdbefee65dc077147aa4e57d9 (diff) |
Merge pull request #39 from v1r0x/error-msg
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 3b32c613..f0109bc4 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', []); + } } /** |