summaryrefslogtreecommitdiff
path: root/app/Api/Authorization/ActionAuthorization.php
blob: 4b41ad82b8d9a52030b0dfc19d84f01d13dca1ec (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 ActionAuthorization
 *
 * @package Kanboard\Api\Authorization
 * @author  Frederic Guillot
 */
class ActionAuthorization extends ProjectAuthorization
{
    public function check($class, $method, $action_id)
    {
        if ($this->userSession->isLogged()) {
            $this->checkProjectPermission($class, $method, $this->actionModel->getProjectId($action_id));
        }
    }
}