mathjazz / pontoon

In-place localization tool
https://pontoon.mozilla.org/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Do not request users if user not authenticated #1298

Open mathjazz opened 3 years ago

mathjazz commented 3 years ago

This issue was created automatically by a script.

Bug 1708309

Bug Reporter: @mathjazz CC: @abowler2

Every time we load the translate page, we load a list of users to be used in the comment form for mentions. That results in a console.error() if the user is not logged in due to a non-JSON-serializable response.

We should only request a list of users if the use can comment.