diff options
Diffstat (limited to 'app/controllers/dashboard/controller.go')
| -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") |
