diff options
Diffstat (limited to 'app/Api/ProjectPermission.php')
-rw-r--r-- | app/Api/ProjectPermission.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/Api/ProjectPermission.php b/app/Api/ProjectPermission.php new file mode 100644 index 00000000..a31faf3d --- /dev/null +++ b/app/Api/ProjectPermission.php @@ -0,0 +1,27 @@ +<?php + +namespace Api; + +/** + * ProjectPermission API controller + * + * @package api + * @author Frederic Guillot + */ +class ProjectPermission extends 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); + } +} |