Don't require API key for suggestions

Remove the access check when a user submits
a suggestion. This allows submitting translation
suggestions without an API key or secret.

https://github.com/LibreTranslate/LibreTranslate/issues/490
This commit is contained in:
P.J. Finlay 2023-10-01 08:07:55 -05:00
parent 9697543666
commit bc10febe9b

View file

@ -979,7 +979,6 @@ def create_app(args):
) )
@bp.post("/suggest") @bp.post("/suggest")
@access_check
def suggest(): def suggest():
""" """
Submit a suggestion to improve a translation Submit a suggestion to improve a translation