Commit 1c4489e9 authored by Michal Čihař's avatar Michal Čihař

Simplify condition, we already check for that above

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 331fc714
......@@ -314,8 +314,7 @@ def handle_translate(translation, request, user_locked,
request,
_('You don\'t have privileges to save translations!')
)
elif (unit.only_vote_suggestions()
and not request.user.has_perm('trans.save_translation')):
elif unit.only_vote_suggestions():
messages.error(
request,
_('Only suggestions are allowed in this translation!')
......
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