diff options
Diffstat (limited to 'app/controllers/course/forum/configs.php')
| -rw-r--r-- | app/controllers/course/forum/configs.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/course/forum/configs.php b/app/controllers/course/forum/configs.php index 209799f..c99f718 100644 --- a/app/controllers/course/forum/configs.php +++ b/app/controllers/course/forum/configs.php @@ -1,5 +1,4 @@ <?php -require_once 'BaseController.php'; class Course_Forum_ConfigsController extends Forum\BaseController { @@ -7,6 +6,10 @@ class Course_Forum_ConfigsController extends Forum\BaseController { parent::before_filter($action, $args); + if (!$this->user_id) { + throw new LoginException(); + } + if (! $this->is_admin) { throw new AccessDeniedException(); } |
