mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
19 lines
444 B
PHP
19 lines
444 B
PHP
<?php
|
|
|
|
namespace Kanboard\Api\Authorization;
|
|
|
|
/**
|
|
* Class TaskFileAuthorization
|
|
*
|
|
* @package Kanboard\Api\Authorization
|
|
* @author Frederic Guillot
|
|
*/
|
|
class TaskFileAuthorization extends ProjectAuthorization
|
|
{
|
|
public function check($class, $method, $file_id)
|
|
{
|
|
if ($this->userSession->isLogged()) {
|
|
$this->checkProjectPermission($class, $method, $this->taskFileModel->getProjectId($file_id));
|
|
}
|
|
}
|
|
}
|