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 {
|
||||
},
|
||||
})
|
||||
|
||||
go s.loadRules(s.options.Namespace)
|
||||
if err == nil {
|
||||
go s.loadRules(s.options.Namespace)
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user