diff options
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 |
commit | 2ab13b7ad3ffee6670a7a74fa7184735e84e77d9 (patch) | |
tree | a97c952dfc707026a267d8205b31382ebf7bc2fd /model | |
parent | b06f11fd632f146a204b4ef1357a8c099bade072 (diff) | |
download | chat-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.go | 8 |
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 +} |