summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/team.go')
-rw-r--r--api/team.go2
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
}