mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-21 07:17:39 +00:00
1b9cea0e0c
feat: help and support email in privacy policy
24 lines
618 B
Go
24 lines
618 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,
|
|
),
|
|
}
|
|
}
|