Check for error before loading rules

This commit is contained in:
Ben Toogood 2020-05-22 14:03:12 +01:00
parent 877fe5fb0a
commit c800070477

View File

@ -99,7 +99,10 @@ func (s *svc) Grant(rule *auth.Rule) error {
},
})
if err == nil {
go s.loadRules(s.options.Namespace)
}
return err
}