mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
27 lines
572 B
PHP
27 lines
572 B
PHP
<?php
|
|
|
|
namespace Api;
|
|
|
|
/**
|
|
* ProjectPermission API controller
|
|
*
|
|
* @package api
|
|
* @author Frederic Guillot
|
|
*/
|
|
class ProjectPermission extends \Core\Base
|
|
{
|
|
public function getMembers($project_id)
|
|
{
|
|
return $this->projectPermission->getMembers($project_id);
|
|
}
|
|
|
|
public function revokeUser($project_id, $user_id)
|
|
{
|
|
return $this->projectPermission->revokeMember($project_id, $user_id);
|
|
}
|
|
|
|
public function allowUser($project_id, $user_id)
|
|
{
|
|
return $this->projectPermission->addMember($project_id, $user_id);
|
|
}
|
|
}
|