Mattermost, Inc.

How to change PrivacyPolicyLink and TermsOfServiceLink

We are currently running in 5.12 in production and 5.19.1 in dev environment. We would be pushing 5.19.1 to production soon.

There is a need to change Privacy Policy and Terms of Conditions (Links) that are referred in “About Mattermost” page. I thought changing the references in config.json against the values SupportSettings.TermsOfServiceLink and PrivacyPolicyLink would do. But it never came to effect. Tried all of the following , but not result. Am I missing anything. Any guidance will be helpful.

Tried Options
(Against each option, I cleared Browser cache once to see if it gets reflected, but it is not reflecting)

Changed “CustomTermsOfServiceEnabled”: true

  1. Changed JSON entries in server (SERVICE NOT RESTARTED) - No changes
  2. Changed JSON entries in server (RESTARTED) - No changes
  3. Used …bin> ./mattermost set commands to reset values (SERVICE NOT RESTARTED) - No Changes
  4. Used …bin> ./mattermost set commands to reset values (SERVICE RESTARTED) - No Changes. Ensured post setting the values config.json is changed

Do you see any Mattermost log errors?

Hello, @kramac

On top of the question asked by @amy.blais on the error on the mattermost.log, may I know if you are performing the changes from the backend config.json due to absence of access on the System Console from the Mattermost UI? Can I also confirm if your instance is utilizing a valid E20 license that allows the Custom Terms of Service to be implemented?

The reason why I am asking is because you can make the changes from System Console > Site Configuration > Customization based on the screen shot I attached below:

Can you provide us with more insight on this?

Hello @ahmaddanial,
I am working with @kramac,

I have tried below options
Option1 :
Change config/config.json like below
If I change links it will update as below
After update:

“SupportSettings”: {
“TermsOfServiceLink”: “https://xyz.com”,
“PrivacyPolicyLink”: “https://abc.com”,
…….
}
Restart the mattermost services
[xyz@xyz ~]$ sudo service mattermost status
Redirecting to /bin/systemctl status mattermost.service
● mattermost.service - Mattermost
Loaded: loaded (/usr/lib/systemd/system/mattermost.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2020-03-10 12:34:57 UTC; 15h ago
Main PID: 89110 (mattermost)
CGroup: /system.slice/mattermost.service
└─89110 mattermost --platform

Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“info”,“ts”:1583843999.5263975,“caller”:“app/server.go:221”,“msg”:“Print…rmost”}
Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“info”,“ts”:1583843999.5264452,“caller”:“app/server.go:222”,“msg”:“Loade…json”}
Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“info”,“ts”:1583843999.5535064,“caller”:“sqlstore/post_store.go:1351”,“m…:65535}
Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“info”,“ts”:1583843999.6178417,“caller”:“jobs/workers.go:68”,“msg”:“Star…rkers”}
Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“error”,“ts”:1583843999.6179132,“caller”:“commands/server.go:72”,“msg”:”…nary."}
Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“info”,“ts”:1583843999.62123,“caller”:“jobs/schedulers.go:74”,“msg”:“Sta…lers.”}
Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“info”,“ts”:1583843999.6257267,“caller”:“app/web_hub.go:75”,“msg”:“Start…ubs”:4}
Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“info”,“ts”:1583843999.6437707,“caller”:“app/server.go:440”,“msg”:“Start…er…”}
Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“info”,“ts”:1583843999.6438055,“caller”:“app/server.go:466”,“msg”:“RateL…abled”}
Mar 10 12:39:59 xyz.daa.local platform[89110]: {“level”:“info”,“ts”:1583843999.6443028,“caller”:“app/server.go:506”,“msg”:“Serve…]:443”}
Hint: Some lines were ellipsized, use -l to show in full.
[xyz@xyz ~]$ sudo service mattermost restart

But when click on About mattermost and click/hover over Terms Of Service and Privacy Policy , links are not getting failed

Result: Experiment failed

Option 2:
If I directly updated the link in the URL

And restart the matermost services in backend
[xyz@xyz~]$ sudo service mattermost restart

It gets reflected in /opt/mattermost/config/config.json
“SupportSettings”: {
“TermsOfServiceLink”: “https://about.mattermost.com/default-terms/”,
“PrivacyPolicyLink”: “https://about.mattermost.com/default-privacy-policy/”,
},
But when click on About mattermost and click/hover over Terms Of Service and Privacy Policy , links are not getting failed

Option 3: Changes in other files /opt/daa/cookbooks/daa_mattermost/templates/default/config.json.erb along with option1 and option 2 like below
“SupportSettings”: {
“TermsOfServiceLink”: “https://abc.com”,
“PrivacyPolicyLink”: “https://abc.com”,

}
Result: Experiment failed

Hello, @nehakabi

Thank you for the update. The reason why I am asking if you have attempted to update the values from the UI itself is because it does not require the System Administrator to perform any service restart. As long as you click on Save, the information should be reflected directly.

Can you also confirm the current values of TermsOfServiceLink and PrivacyPolicyLink from the following?

  • System Console > Customization
  • config.json

If I update from UI or backend through /config/config.json, it gets reflect in frontend UI as well as in backend config.json. I am not able to mention the links in the post which is not allowing. But when click on About mattermost and click/hover over Terms Of Service and Privacy Policy , links are not getting updated

Hi, @nehakabi

Got it. Since they get reflected on the UI as well as config.json, can you please confirm if you have attempted to view the Terms Of Service and Privacy Policy from an Incognito web browser?

If it is on desktop app, have you tried to clear the cache and reload the client again?