MM-15947: Prevents new user creation with invite link to group-constrained team. (#11023)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
118cd02613
Коммит
c8646eae51
@@ -104,6 +104,10 @@ func (a *App) CreateUserWithInviteId(user *model.User, inviteId string) (*model.
|
||||
}
|
||||
team := result.Data.(*model.Team)
|
||||
|
||||
if team.IsGroupConstrained() {
|
||||
return nil, model.NewAppError("CreateUserWithInviteId", "app.team.invite_id.group_constrained.error", nil, "", http.StatusForbidden)
|
||||
}
|
||||
|
||||
user.EmailVerified = false
|
||||
|
||||
ruser, err := a.CreateUser(user)
|
||||
|
||||
Ссылка в новой задаче
Block a user