From 54a6ae6710ca531678659cd02e8b7852d8f1db28 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Tue, 25 Jul 2023 06:11:50 +0300 Subject: [PATCH] updated record.PublicExport comment --- models/record.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/record.go b/models/record.go index 8b4becdec..d349f41b0 100644 --- a/models/record.go +++ b/models/record.go @@ -497,7 +497,8 @@ func (m *Record) ColumnValueMap() map[string]any { // PublicExport exports only the record fields that are safe to be public. // -// Fields marked as hidden will be exported only if `m.IgnoreEmailVisibility(true)` is set. +// For auth records, to force the export of the email field you need to set +// `m.IgnoreEmailVisibility(true)`. func (m *Record) PublicExport() map[string]any { result := make(map[string]any, len(m.collection.Schema.Fields())+5)