summaryrefslogtreecommitdiff
path: root/app/Api/Authorization/TaskAuthorization.php
blob: 6e0442119b233ead9c9f6af0d016652715d476c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Kanboard\Api\Authorization;

/**
 * Class TaskAuthorization
 *
 * @package Kanboard\Api\Authorization
 * @author  Frederic Guillot
 */
class TaskAuthorization extends ProjectAuthorization
{
    public function check($class, $method, $task_id)
    {
        if ($this->userSession->isLogged()) {
            $this->checkProjectPermission($class, $method, $this->taskFinderModel->getProjectId($task_id));
        }
    }
}