mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
fix jwt revoke
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user