Skip to content

Commit 5a4a6f8

Browse files
committed
Sorted missing parameters from Team model
1 parent 3c201c9 commit 5a4a6f8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/Gitlab/Model/Team.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function show()
4343

4444
public function members()
4545
{
46-
$data = $this->api('teams')->members();
46+
$data = $this->api('teams')->members($this->id);
4747

4848
$members = array();
4949
foreach ($data as $member) {
@@ -55,28 +55,28 @@ public function members()
5555

5656
public function member($user_id)
5757
{
58-
$data = $this->api('teams')->member($user_id);
58+
$data = $this->api('teams')->member($this->id, $user_id);
5959

6060
return User::fromArray($this->getClient(), $data);
6161
}
6262

6363
public function addMember($user_id, $access_level)
6464
{
65-
$data = $this->api('teams')->addMember($user_id, $access_level);
65+
$data = $this->api('teams')->addMember($this->id, $user_id, $access_level);
6666

6767
return User::fromArray($this->getClient(), $data);
6868
}
6969

7070
public function removeMember($user_id)
7171
{
72-
$this->api('teams')->removeMember($user_id);
72+
$this->api('teams')->removeMember($this->id, $user_id);
7373

7474
return true;
7575
}
7676

7777
public function projects()
7878
{
79-
$data = $this->api('teams')->projects();
79+
$data = $this->api('teams')->projects($this->id);
8080

8181
$projects = array();
8282
foreach ($data as $project) {
@@ -88,21 +88,21 @@ public function projects()
8888

8989
public function project($project_id)
9090
{
91-
$data = $this->api('teams')->project($project_id);
91+
$data = $this->api('teams')->project($this->id, $project_id);
9292

9393
return Project::fromArray($this->getClient(), $data);
9494
}
9595

9696
public function addProject($project_id, $greatest_access_level)
9797
{
98-
$data = $this->api('teams')->addProject($project_id, $greatest_access_level);
98+
$data = $this->api('teams')->addProject($this->id, $project_id, $greatest_access_level);
9999

100100
return Project::fromArray($this->getClient(), $data);
101101
}
102102

103103
public function removeProject($project_id)
104104
{
105-
$this->api('teams')->removeProject($project_id);
105+
$this->api('teams')->removeProject($this->id, $project_id);
106106

107107
return true;
108108
}

0 commit comments

Comments
 (0)