summaryrefslogtreecommitdiff
path: root/app/Api
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-04-21 21:10:04 -0400
committerFrederic Guillot <fred@kanboard.net>2016-04-21 21:10:04 -0400
commit60e0753b90838120510861ebc674f826140b31de (patch)
treef85b81e439adad8b3011c3127442c822740b02d0 /app/Api
parentb0e41bc81b40cfdc5e067bf1eb4d05e3aa438c7d (diff)
Added API procedure "getMemberGroups"
Diffstat (limited to 'app/Api')
-rw-r--r--app/Api/GroupMember.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Api/GroupMember.php b/app/Api/GroupMember.php
index de62f0c6..9d2a4796 100644
--- a/app/Api/GroupMember.php
+++ b/app/Api/GroupMember.php
@@ -10,6 +10,11 @@ namespace Kanboard\Api;
*/
class GroupMember extends \Kanboard\Core\Base
{
+ public function getMemberGroups($user_id)
+ {
+ return $this->groupMember->getGroups($user_id);
+ }
+
public function getGroupMembers($group_id)
{
return $this->groupMember->getMembers($group_id);