fix: changes in auth (#442)

This commit is contained in:
Livio Amstutz 2020-07-09 18:47:54 +02:00 committed by GitHub
parent e5172bad70
commit 870226a481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,9 @@ package auth
import "github.com/caos/zitadel/internal/api/grpc/server/middleware"
func (c *Changes) Localizers() []middleware.Localizer {
if c == nil {
return nil
}
localizers := make([]middleware.Localizer, len(c.Changes))
for i, change := range c.Changes {
localizers[i] = change.EventType