fix jwt revoke

This commit is contained in:
huanghuan.27@bytedance.com 2020-06-02 10:26:33 +08:00
parent 8fb138af06
commit 219d29f664

View File

@ -83,7 +83,7 @@ func (j *jwt) Revoke(rule *auth.Rule) error {
defer j.Unlock() defer j.Unlock()
rules := []*auth.Rule{} rules := []*auth.Rule{}
for _, r := range rules { for _, r := range j.rules {
if r.ID != rule.ID { if r.ID != rule.ID {
rules = append(rules, r) rules = append(rules, r)
} }