From 2cd89b747c7c255df9197132fcdf04d0c8cd2ff3 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 25 Apr 2025 10:16:54 -0600 Subject: feat: record the author of the new sparkle --- app/controllers/dashboard/controller.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'app/controllers/dashboard') diff --git a/app/controllers/dashboard/controller.go b/app/controllers/dashboard/controller.go index 8f5105d..65b2fe5 100644 --- a/app/controllers/dashboard/controller.go +++ b/app/controllers/dashboard/controller.go @@ -4,7 +4,6 @@ import ( "net/http" "github.com/xlgmokha/x/pkg/log" - "github.com/xlgmokha/x/pkg/x" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/views" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/key" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web/middleware" @@ -26,11 +25,6 @@ func (c *Controller) MountTo(mux *http.ServeMux) { func (c *Controller) Show(w http.ResponseWriter, r *http.Request) { currentUser := key.CurrentUser.From(r.Context()) - if x.IsZero(currentUser) { - http.Redirect(w, r, "/", http.StatusFound) - return - } - w.WriteHeader(http.StatusOK) w.Header().Add("Content-Type", "text/html") -- cgit v1.2.3