diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-25 10:16:54 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-25 10:16:54 -0600 |
| commit | 2cd89b747c7c255df9197132fcdf04d0c8cd2ff3 (patch) | |
| tree | 53e8dffe9dd73f4471f073bcd0199dc9361fad70 /app/controllers/dashboard | |
| parent | 00b0381dfccab2ddff7de04933fdb11b32695faf (diff) | |
feat: record the author of the new sparkle
Diffstat (limited to 'app/controllers/dashboard')
| -rw-r--r-- | app/controllers/dashboard/controller.go | 6 |
1 files changed, 0 insertions, 6 deletions
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") |
