Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jan 27, 2021
1 parent 3a4caad commit 3b0d26f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ func GetContext(req *http.Request) *Context {

// SignedUserName returns signed user's name via context
func SignedUserName(req *http.Request) string {
if middlewares.IsInternalPath(req) {
if middleware.IsInternalPath(req) {
return ""
}
if middlewares.IsAPIPath(req) {
if middleware.IsAPIPath(req) {
ctx, ok := req.Context().Value(apiContextKey).(*APIContext)
if ok {
v := ctx.Data["SignedUserName"]
Expand Down

0 comments on commit 3b0d26f

Please sign in to comment.