mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 20:08:02 +00:00
15d5338b91
* feat: customize doc link and additional custom link * feat: add e2e tests * fix: update docs * fix: add @peintnermax changes about cache * fix: golangci-lint complains preparation.PrepareCommands --------- Co-authored-by: Max Peintner <max@caos.ch>
27 lines
731 B
Go
27 lines
731 B
Go
package policy
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/api/grpc/object"
|
|
"github.com/zitadel/zitadel/internal/query"
|
|
policy_pb "github.com/zitadel/zitadel/pkg/grpc/policy"
|
|
)
|
|
|
|
func ModelPrivacyPolicyToPb(policy *query.PrivacyPolicy) *policy_pb.PrivacyPolicy {
|
|
return &policy_pb.PrivacyPolicy{
|
|
IsDefault: policy.IsDefault,
|
|
TosLink: policy.TOSLink,
|
|
PrivacyLink: policy.PrivacyLink,
|
|
HelpLink: policy.HelpLink,
|
|
SupportEmail: string(policy.SupportEmail),
|
|
Details: object.ToViewDetailsPb(
|
|
policy.Sequence,
|
|
policy.CreationDate,
|
|
policy.ChangeDate,
|
|
policy.ResourceOwner,
|
|
),
|
|
DocsLink: policy.DocsLink,
|
|
CustomLink: policy.CustomLink,
|
|
CustomLinkText: policy.CustomLinkText,
|
|
}
|
|
}
|