aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/forum/subscriptions.php
blob: 77b5e0f5190663c510a63ef9366d334ac1cb0f69 (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): void
    {
        parent::before_filter($action, $args);

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

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

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