Restore info metrics (#252)

This commit is contained in:
Travis Groth 2019-08-03 12:58:21 -04:00 committed by GitHub
parent 5e3eb69dca
commit 790619ef01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 2 deletions

View file

@ -60,10 +60,10 @@ func (a *Authorize) ValidIdentity(route string, identity *Identity) bool {
// UpdateOptions updates internal structures based on config.Options
func (a *Authorize) UpdateOptions(o config.Options) error {
log.Info().Msg("authorize: updating options")
if a == nil {
return nil
}
log.Info().Msg("authorize: updating options")
a.identityAccess = NewIdentityWhitelist(o.Policies, o.Administrators)
return nil
}