Skip to content

Commit

Permalink
Moredata
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Aug 1, 2024
1 parent f08ad76 commit cb14c39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/method.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ func initialCaretaker(c *fasthttp.RequestCtx, f func(md common.MethodData) commo
}
}
if missingPrivileges != 0 {
slog.Error("Denied access due to missing privileges", "missing", missingPrivileges, "userID", md.User.UserID, "route", string(c.Request.URI().Path()))
slog.Error(
"Denied access due to missing privileges",
"missing", missingPrivileges,
"userID", md.User.UserID,
"route", string(c.Request.URI().Path()),
)
c.SetStatusCode(401)
mkjson(c, common.SimpleResponse(401, "Unauthorized."))
return
Expand Down

0 comments on commit cb14c39

Please sign in to comment.