mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
6b1f7ba333
* fix: fix setup * fix oidc app change * fix: fix migration and proto * fix: fix granted projects * setup1 apis instead of apps * fix: add object detail with creation date * fix user phone change * add localizer to AddOIDCAppResponse * fix test * fix domain test * fix: converter Co-authored-by: Livio Amstutz <livio.a@gmail.com>
20 lines
398 B
Go
20 lines
398 B
Go
package management
|
|
|
|
import "github.com/caos/zitadel/internal/api/grpc/server/middleware"
|
|
|
|
func (a *AddOIDCAppResponse) Localizers() []middleware.Localizer {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
|
|
if !a.NoneCompliant {
|
|
return nil
|
|
}
|
|
localizers := make([]middleware.Localizer, len(a.ComplianceProblems))
|
|
for i, problem := range a.ComplianceProblems {
|
|
localizers[i] = problem
|
|
}
|
|
return localizers
|
|
|
|
}
|