From 1885d2ec2ab6870b735f08752f5354e9f624d87f Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Tue, 8 Aug 2017 16:20:07 -0400 Subject: Minor updates to team --- api/team.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/team.go') diff --git a/api/team.go b/api/team.go index c7fa61df6..a2ac50116 100644 --- a/api/team.go +++ b/api/team.go @@ -235,7 +235,7 @@ func getTeamByName(c *Context, w http.ResponseWriter, r *http.Request) { c.Err = err return } else { - if team.Type != model.TEAM_OPEN && c.Session.GetTeamByTeamId(team.Id) == nil { + if (!team.AllowOpenInvite || team.Type != model.TEAM_OPEN) && c.Session.GetTeamByTeamId(team.Id) == nil { if !app.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) { c.SetPermissionError(model.PERMISSION_MANAGE_SYSTEM) return -- cgit v1.2.3-1-g7c22