aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/forum/subscriptions.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/course/forum/subscriptions.php')
-rw-r--r--app/controllers/course/forum/subscriptions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/course/forum/subscriptions.php b/app/controllers/course/forum/subscriptions.php
index 1f5582c..13df712 100644
--- a/app/controllers/course/forum/subscriptions.php
+++ b/app/controllers/course/forum/subscriptions.php
@@ -1,5 +1,4 @@
<?php
-require_once 'BaseController.php';
class Course_Forum_SubscriptionsController extends Forum\BaseController
{
@@ -7,6 +6,10 @@ class Course_Forum_SubscriptionsController extends Forum\BaseController
{
parent::before_filter($action, $args);
+ if (!$this->user_id) {
+ throw new LoginException();
+ }
+
Navigation::activateItem('course/forum/subscriptions');
}