Skip to content

Commit

Permalink
Fixed abort
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhrajyoti-Dey-FrosTiK committed Jan 28, 2024
1 parent 97977e9 commit d636df8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handler/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ func (h *Handler) GinVerifyStudent(ctx *gin.Context) {
if student != nil {
ctx.Set(constants.SESSION_STUDENT, student)
ctx.Next()
} else {
ctx.Abort()
}
}

0 comments on commit d636df8

Please sign in to comment.