summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-12-07 15:13:31 -0800
committer=Corey Hulen <corey@hulen.com>2015-12-07 15:13:31 -0800
commit2ab13b7ad3ffee6670a7a74fa7184735e84e77d9 (patch)
treea97c952dfc707026a267d8205b31382ebf7bc2fd /model
parentb06f11fd632f146a204b4ef1357a8c099bade072 (diff)
downloadchat-2ab13b7ad3ffee6670a7a74fa7184735e84e77d9.tar.gz
chat-2ab13b7ad3ffee6670a7a74fa7184735e84e77d9.tar.bz2
chat-2ab13b7ad3ffee6670a7a74fa7184735e84e77d9.zip
PLT-1302 fixing hiding email adddress
Diffstat (limited to 'model')
-rw-r--r--model/config.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 195cefae8..869f975e6 100644
--- a/model/config.go
+++ b/model/config.go
@@ -279,3 +279,11 @@ func (o *Config) IsValid() *AppError {
return nil
}
+
+func (me *Config) GetSanitizeOptions() map[string]bool {
+ options := map[string]bool{}
+ options["fullname"] = me.PrivacySettings.ShowFullName
+ options["email"] = me.PrivacySettings.ShowEmailAddress
+
+ return options
+}