From e8c9ccaa7e47f1cba3d2b126f6ebbb092fa43235 Mon Sep 17 00:00:00 2001 From: Daniel Hodan Date: Wed, 17 Oct 2018 16:37:52 +0200 Subject: GH-9607: Add GetTeamsForUser to plugin API (#9644) * add GetTeamsForUser to plugin api * Add version comment, fix comment typo --- plugin/api.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index 19425bf04..c2429538d 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -98,6 +98,11 @@ type API interface { // UpdateTeam updates a team. UpdateTeam(team *model.Team) (*model.Team, *model.AppError) + // GetTeamsForUser returns list of teams of given user ID. + // + // Minimum server version: 5.6 + GetTeamsForUser(userId string) ([]*model.Team, *model.AppError) + // CreateTeamMember creates a team membership. CreateTeamMember(teamId, userId string) (*model.TeamMember, *model.AppError) -- cgit v1.2.3-1-g7c22