summaryrefslogtreecommitdiff
path: root/app/Api/ProjectPermission.php
blob: a31faf3d3a303d02724fa652e4bec15cd1c2960b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
    }
}