Skip to content

Commit

Permalink
fix: checkin create disable staff only
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jul 24, 2024
1 parent 431c740 commit f2ca672
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/checkin/checkin.handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f2ca672

Please sign in to comment.