diff options
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 } |