Commit 8c86c262 authored by Michal Čihař's avatar Michal Čihař

Honor ACL when shpowing user translations

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent faa0034a
......@@ -86,7 +86,8 @@ def home(request):
usertranslations = None
if request.user.is_authenticated():
usertranslations = Translation.objects.filter(
language__in=request.user.profile.languages.all()
language__in=request.user.profile.languages.all(),
subproject__project__in=projects,
).order_by(
'subproject__project__name', 'subproject__name'
).select_related()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment