diff options
author | David Lu <david.lu@hotmail.com> | 2016-06-30 08:43:46 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-06-30 08:43:46 -0400 |
commit | 1c8962cf9981edf14933264bc060168723e0bde1 (patch) | |
tree | ae7b4de755e54f870d8ab4293d419c47466b9437 /api/team.go | |
parent | 65e18ad1f553d91c28b444afaced08f462f9d374 (diff) | |
download | chat-1c8962cf9981edf14933264bc060168723e0bde1.tar.gz chat-1c8962cf9981edf14933264bc060168723e0bde1.tar.bz2 chat-1c8962cf9981edf14933264bc060168723e0bde1.zip |
enabled team creation for sysadmins (#3433)
Diffstat (limited to 'api/team.go')
-rw-r--r-- | api/team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/team.go b/api/team.go index cb942bb35..9b23a63af 100644 --- a/api/team.go +++ b/api/team.go @@ -295,7 +295,7 @@ func isTeamCreationAllowed(c *Context, email string) bool { email = strings.ToLower(email) - if !utils.Cfg.TeamSettings.EnableTeamCreation { + if !c.IsSystemAdmin() && !utils.Cfg.TeamSettings.EnableTeamCreation { c.Err = model.NewLocAppError("isTeamCreationAllowed", "api.team.is_team_creation_allowed.disabled.app_error", nil, "") return false } |