Skip to content

Commit 3b0d26f

Browse files
committed
fix
1 parent 3a4caad commit 3b0d26f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/context/context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,10 @@ func GetContext(req *http.Request) *Context {
487487

488488
// SignedUserName returns signed user's name via context
489489
func SignedUserName(req *http.Request) string {
490-
if middlewares.IsInternalPath(req) {
490+
if middleware.IsInternalPath(req) {
491491
return ""
492492
}
493-
if middlewares.IsAPIPath(req) {
493+
if middleware.IsAPIPath(req) {
494494
ctx, ok := req.Context().Value(apiContextKey).(*APIContext)
495495
if ok {
496496
v := ctx.Data["SignedUserName"]

0 commit comments

Comments
 (0)