Commit e57a931d authored by Michal Čihař's avatar Michal Čihař

Check project access on automatic translation

Issue #969
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent f76b6c04
......@@ -633,6 +633,8 @@ def auto_translation(request, project, subproject, lang):
project=translation.subproject.project,
slug=autoform.cleaned_data['subproject']
)
if not subprj.has_acl(request.user):
raise PermissionDenied()
sources = sources.filter(translation__subproject=subprj)
for unit in units.iterator():
......
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