Skip to content

Commit

Permalink
Fix broken team dashboard for non-authenticated users
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed Jul 21, 2023
1 parent 6c9ca7e commit 8e76be3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pontoon/teams/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def ajax_projects(request, locale):
)

pretranslation_request_enabled = (
locale in request.user.translated_locales
request.user.is_authenticated
and locale in request.user.translated_locales
and locale.code in settings.GOOGLE_AUTOML_SUPPORTED_LOCALES
and pretranslated_projects.count() < enabled_projects.count()
)
Expand Down

0 comments on commit 8e76be3

Please sign in to comment.