diff --git a/backend/app/api/handlers/v1/v1_ctrl_user.go b/backend/app/api/handlers/v1/v1_ctrl_user.go index c70672f..98bc75e 100644 --- a/backend/app/api/handlers/v1/v1_ctrl_user.go +++ b/backend/app/api/handlers/v1/v1_ctrl_user.go @@ -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) }