diff --git a/api/handlers/auth/authHandler.go b/api/handlers/auth/authHandler.go index be0fef6..56c7bf0 100644 --- a/api/handlers/auth/authHandler.go +++ b/api/handlers/auth/authHandler.go @@ -153,7 +153,7 @@ func (h *Handler) Login(w http.ResponseWriter, r *http.Request) { } func (h *Handler) Register(w http.ResponseWriter, r *http.Request) { - if !h.IsLoggedIn(r) && !h.SomeUsersVerified() { + if h.SomeUsersVerified() { http.Error(w, "You are not allowed to create a user. Log in or reset database.", http.StatusForbidden) return }