diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-09-30 11:30:11 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-09-30 14:26:37 -0400 |
commit | 7d31f3a271d933b8c276602d9fb77fd5d22055de (patch) | |
tree | b836506cc084e1907e39ca0d7283a4175a25ba50 /api/context.go | |
parent | 89b77cc72ffd9dec6242f66277a4aeffe6fb737b (diff) | |
download | chat-7d31f3a271d933b8c276602d9fb77fd5d22055de.tar.gz chat-7d31f3a271d933b8c276602d9fb77fd5d22055de.tar.bz2 chat-7d31f3a271d933b8c276602d9fb77fd5d22055de.zip |
Fixing some locations to use the IsTeamAdmin function which properly checks for system admin permissions.
Diffstat (limited to 'api/context.go')
-rw-r--r-- | api/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |