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