diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 23:19:40 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 23:19:40 +0200 |
commit | e383c069f1aeba49ea9905f77a51bf663e614b0e (patch) | |
tree | 8164aa9e1fad104997e53c6e261bec991631dbbb /app/Controller/Comment.php | |
parent | 8c6df9ef0cea757d25cbbcc6fa7cee86d8739627 (diff) |
Add public view for tasks
Diffstat (limited to 'app/Controller/Comment.php')
-rw-r--r-- | app/Controller/Comment.php | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/app/Controller/Comment.php b/app/Controller/Comment.php index a0a11fc8..a9032ed8 100644 --- a/app/Controller/Comment.php +++ b/app/Controller/Comment.php @@ -25,26 +25,16 @@ class Comment extends Base } if (! $this->acl->isAdminUser() && $comment['user_id'] != $this->acl->getUserId()) { - $this->forbidden(); + $this->response->html($this->template->layout('comment_forbidden', array( + 'menu' => 'tasks', + 'title' => t('Access Forbidden') + ))); } return $comment; } /** - * Forbidden page for comments - * - * @access public - */ - public function forbidden() - { - $this->response->html($this->template->layout('comment_forbidden', array( - 'menu' => 'tasks', - 'title' => t('Access Forbidden') - ))); - } - - /** * Add comment form * * @access public |