From f2ca672719dfe7bee6b47f6571edcac2aa50b7f7 Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Wed, 24 Jul 2024 22:30:09 +0700 Subject: [PATCH] fix: checkin create disable staff only --- internal/checkin/checkin.handler.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/checkin/checkin.handler.go b/internal/checkin/checkin.handler.go index ed778bc..3cfe5aa 100644 --- a/internal/checkin/checkin.handler.go +++ b/internal/checkin/checkin.handler.go @@ -55,10 +55,10 @@ func (h *handlerImpl) Create(c context.Ctx) { return } - if c.GetString("role") != "staff" { - c.ResponseError(apperror.ForbiddenError("only staff can access this endpoint")) - return - } + // if c.GetString("role") != "staff" { + // c.ResponseError(apperror.ForbiddenError("only staff can access this endpoint")) + // return + // } tr := c.GetTracer() ctx, span := tr.Start(c.RequestContext(), "handler.checkin.Create")