fix(stacks): allow pull and redeploy to non-admins [EE-1329] (#5415)

This commit is contained in:
Dmitry Salakhov
2021-08-13 09:35:26 +12:00
committed by GitHub
parent 8864af7411
commit 9693bfc2aa
2 changed files with 2 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
package stacks
import (
"errors"
"fmt"
"log"
"net/http"
@@ -32,9 +31,6 @@ func (payload *stackGitRedployPayload) Validate(r *http.Request) error {
payload.RepositoryReferenceName = defaultGitReferenceName
}
if payload.RepositoryAuthentication && govalidator.IsNull(payload.RepositoryPassword) {
return errors.New("invalid repository credentials. Username and password must be specified when authentication is enabled")
}
return nil
}