diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-12-08 08:29:27 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-12-08 08:29:27 -0500 |
commit | a686bcc19af3b8a0a89abfb0f85cabeb65005e6e (patch) | |
tree | 405d2d4b34e66a21429170dbb31b5a073179918a /model/config.go | |
parent | 8cd3e225c995b4e6752262eec36aa5145f28cdea (diff) | |
parent | 4d6c8a20eefaaef6fec01962759fc5c1c9dc2e02 (diff) | |
download | chat-a686bcc19af3b8a0a89abfb0f85cabeb65005e6e.tar.gz chat-a686bcc19af3b8a0a89abfb0f85cabeb65005e6e.tar.bz2 chat-a686bcc19af3b8a0a89abfb0f85cabeb65005e6e.zip |
Merge pull request #1646 from mattermost/PLT-1302
PLT-1302 fixing hiding email adddress
Diffstat (limited to 'model/config.go')
-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 +} |