Skip to content

Commit f8ea161

Browse files
davidsharpbellradutopala
authored andcommitted
Fixes owned endpoint (#180)
1 parent 152ae78 commit f8ea161

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function accessible($page = 1, $per_page = self::PER_PAGE, $order_by = se
4040
}
4141

4242
/**
43+
* Get projects owned by the current user
4344
* @param int $page
4445
* @param int $per_page
4546
* @param string $order_by
@@ -48,7 +49,7 @@ public function accessible($page = 1, $per_page = self::PER_PAGE, $order_by = se
4849
*/
4950
public function owned($page = 1, $per_page = self::PER_PAGE, $order_by = self::ORDER_BY, $sort = self::SORT)
5051
{
51-
return $this->get('projects/owned', array(
52+
return $this->get('projects?owned=1', array(
5253
'page' => $page,
5354
'per_page' => $per_page,
5455
'order_by' => $order_by,

0 commit comments

Comments
 (0)