Fix forbidden error for password reset (#1171)

Access the app config directly through the data store, skipping the
incorrect permission check on the service method.
This commit is contained in:
Zach Wasserman 2021-06-23 08:45:03 -07:00 committed by GitHub
parent 50a49b25bf
commit 2b3f968478
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -438,7 +438,7 @@ func (svc *Service) RequestPasswordReset(ctx context.Context, email string) erro
return err
}
config, err := svc.AppConfig(ctx)
config, err := svc.ds.AppConfig()
if err != nil {
return err
}