Check for error before loading rules
This commit is contained in:
parent
877fe5fb0a
commit
c800070477
@ -99,7 +99,10 @@ func (s *svc) Grant(rule *auth.Rule) error {
|
||||
},
|
||||
})
|
||||
|
||||
if err == nil {
|
||||
go s.loadRules(s.options.Namespace)
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user