summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
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 /plugin/api.go
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 'plugin/api.go')
-rw-r--r--plugin/api.go5
1 files changed, 5 insertions, 0 deletions
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)