Add API calls to manage tags

This commit is contained in:
Frederic Guillot
2016-12-17 17:02:29 -05:00
parent ddeb89e2c6
commit 1186104469
10 changed files with 189 additions and 4 deletions

View File

@@ -10,10 +10,10 @@ namespace Kanboard\Api\Authorization;
*/
class TaskAuthorization extends ProjectAuthorization
{
public function check($class, $method, $category_id)
public function check($class, $method, $task_id)
{
if ($this->userSession->isLogged()) {
$this->checkProjectPermission($class, $method, $this->taskFinderModel->getProjectId($category_id));
$this->checkProjectPermission($class, $method, $this->taskFinderModel->getProjectId($task_id));
}
}
}