From 70a52b5bbdcf7a040ca3b2f88650799ba26a2a82 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Tue, 14 Feb 2023 14:46:44 -0900 Subject: [PATCH] remove sanity check --- backend/app/api/handlers/v1/v1_ctrl_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }