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 --- app/plugin_api.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') diff --git a/app/plugin_api.go b/app/plugin_api.go index 9afc5bb73..85bcc0660 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -111,6 +111,10 @@ func (api *PluginAPI) UpdateTeam(team *model.Team) (*model.Team, *model.AppError return api.app.UpdateTeam(team) } +func (api *PluginAPI) GetTeamsForUser(userId string) ([]*model.Team, *model.AppError) { + return api.app.GetTeamsForUser(userId) +} + func (api *PluginAPI) CreateTeamMember(teamId, userId string) (*model.TeamMember, *model.AppError) { return api.app.AddTeamMember(teamId, userId) } -- cgit v1.2.3-1-g7c22