aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/forum/subscriptions.php
blob: 13df712ee60d7c7266e44ee84d5c5a4151196caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

class Course_Forum_SubscriptionsController extends Forum\BaseController
{
    public function before_filter(&$action, &$args)
    {
        parent::before_filter($action, $args);

        if (!$this->user_id) {
            throw new LoginException();
        }

        Navigation::activateItem('course/forum/subscriptions');
    }

    public function index_action()
    {
        $this->render_vue_app(
            Studip\VueApp::create('forum/subscriptions/Index')
        );
    }
}