From 6e1db0bb3ff82d28c7226944375a582bf32dea13 Mon Sep 17 00:00:00 2001 From: 0xdcarns Date: Thu, 16 Feb 2023 16:42:08 -0500 Subject: [PATCH] removed admin security check --- controllers/enrollmentkeys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/enrollmentkeys.go b/controllers/enrollmentkeys.go index 311c94fd..0c346c10 100644 --- a/controllers/enrollmentkeys.go +++ b/controllers/enrollmentkeys.go @@ -18,7 +18,7 @@ func enrollmentKeyHandlers(r *mux.Router) { r.HandleFunc("/api/v1/enrollment-keys", logic.SecurityCheck(true, http.HandlerFunc(createEnrollmentKey))).Methods(http.MethodPost) r.HandleFunc("/api/v1/enrollment-keys", logic.SecurityCheck(true, http.HandlerFunc(getEnrollmentKeys))).Methods(http.MethodGet) r.HandleFunc("/api/v1/enrollment-keys/{keyID}", logic.SecurityCheck(true, http.HandlerFunc(deleteEnrollmentKey))).Methods(http.MethodDelete) - r.HandleFunc("/api/v1/host/register/{token}", logic.SecurityCheck(true, http.HandlerFunc(handleHostRegister))).Methods(http.MethodPost) + r.HandleFunc("/api/v1/host/register/{token}", http.HandlerFunc(handleHostRegister)).Methods(http.MethodPost) } // swagger:route GET /api/v1/enrollment-keys enrollmentKeys getEnrollmentKeys