From 7d31f3a271d933b8c276602d9fb77fd5d22055de Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 30 Sep 2015 11:30:11 -0400 Subject: Fixing some locations to use the IsTeamAdmin function which properly checks for system admin permissions. --- api/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/context.go') diff --git a/api/context.go b/api/context.go index 0cc5a2b53..02c3dc902 100644 --- a/api/context.go +++ b/api/context.go @@ -310,7 +310,7 @@ func (c *Context) IsSystemAdmin() bool { return false } -func (c *Context) IsTeamAdmin(userId string) bool { +func (c *Context) IsTeamAdmin() bool { if model.IsInRole(c.Session.Roles, model.ROLE_TEAM_ADMIN) || c.IsSystemAdmin() { return true } -- cgit v1.2.3-1-g7c22