Commit 348278d9 authored by Michal Čihař's avatar Michal Čihař

Let suggestions honor Group ACLs

Fixes #1004
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent b61b9efe
...@@ -141,6 +141,8 @@ def can_suggest(user, translation): ...@@ -141,6 +141,8 @@ def can_suggest(user, translation):
""" """
if not translation.subproject.enable_suggestions: if not translation.subproject.enable_suggestions:
return False return False
if has_group_perm(user, translation, 'trans.add_suggestion'):
return True
return check_permission( return check_permission(
user, translation.subproject.project, 'trans.add_suggestion' user, translation.subproject.project, 'trans.add_suggestion'
) )
......
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