commit
e4e56b0f3f
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user