mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 16:50:27 +00:00
remove sanity check
This commit is contained in:
parent
25ef2d0f51
commit
70a52b5bbd
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ func (ctrl *V1Controller) HandleUserRegistration() server.HandlerFunc {
|
||||||
return validate.NewRequestError(err, http.StatusInternalServerError)
|
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)
|
return validate.NewRequestError(fmt.Errorf("user registration disabled"), http.StatusForbidden)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue