From 219d29f664b84687ada2a4670a6237deec85e35f Mon Sep 17 00:00:00 2001 From: "huanghuan.27@bytedance.com" Date: Tue, 2 Jun 2020 10:26:33 +0800 Subject: [PATCH] fix jwt revoke --- auth/jwt/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/jwt/jwt.go b/auth/jwt/jwt.go index 492c5b7e..f2cf2eb3 100644 --- a/auth/jwt/jwt.go +++ b/auth/jwt/jwt.go @@ -83,7 +83,7 @@ func (j *jwt) Revoke(rule *auth.Rule) error { defer j.Unlock() rules := []*auth.Rule{} - for _, r := range rules { + for _, r := range j.rules { if r.ID != rule.ID { rules = append(rules, r) }