Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Aug 2, 2018
1 parent 2104ad8 commit 86321ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils/idm.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func FindUserNameInContext(ctx context.Context) (string, claim.Claims) {
var userName string
var claims claim.Claims
if ctx.Value(claim.ContextKey) != nil {
claims := ctx.Value(claim.ContextKey).(claim.Claims)
claims = ctx.Value(claim.ContextKey).(claim.Claims)
userName = claims.Name
} else if ctx.Value(common.PYDIO_CONTEXT_USER_KEY) != nil {
userName = ctx.Value(common.PYDIO_CONTEXT_USER_KEY).(string)
Expand Down

0 comments on commit 86321ec

Please sign in to comment.