summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDaniel Hodan <daniel.hodan@czertbytes.de>2018-10-17 16:37:52 +0200
committerJesse Hallam <jesse.hallam@gmail.com>2018-10-17 10:37:52 -0400
commite8c9ccaa7e47f1cba3d2b126f6ebbb092fa43235 (patch)
tree4c82fde308452da5f591eec5dc6d076fae7c5756 /app
parent722675983107d0a8d5004bc1e076962786d603f0 (diff)
downloadchat-e8c9ccaa7e47f1cba3d2b126f6ebbb092fa43235.tar.gz
chat-e8c9ccaa7e47f1cba3d2b126f6ebbb092fa43235.tar.bz2
chat-e8c9ccaa7e47f1cba3d2b126f6ebbb092fa43235.zip
GH-9607: Add GetTeamsForUser to plugin API (#9644)
* add GetTeamsForUser to plugin api * Add version comment, fix comment typo
Diffstat (limited to 'app')
-rw-r--r--app/plugin_api.go4
1 files changed, 4 insertions, 0 deletions
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)
}