remove sanity check

This commit is contained in:
Hayden 2023-02-14 14:46:44 -09:00
parent 25ef2d0f51
commit 70a52b5bbd
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -28,7 +28,7 @@ func (ctrl *V1Controller) HandleUserRegistration() server.HandlerFunc {
return validate.NewRequestError(err, http.StatusInternalServerError)
}
if ctrl.allowRegistration == false && regData.GroupToken == "" {
if !ctrl.allowRegistration && regData.GroupToken == "" {
return validate.NewRequestError(fmt.Errorf("user registration disabled"), http.StatusForbidden)
}