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

Use new wrapper

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent a7cff899
......@@ -43,6 +43,7 @@ from weblate.trans.checks import CHECKS
from weblate.trans.util import join_plural
from weblate.trans.permissions import (
can_translate, can_suggest, can_accept_suggestion, can_delete_suggestion,
can_vote_suggestion,
)
......@@ -415,7 +416,7 @@ def check_suggestion_permissions(request, mode, translation):
)
return False
elif mode in ('upvode', 'downvote'):
if not request.user.has_perm('trans.vote_suggestion'):
if not can_vote_suggestion(request.user, translation):
messages.error(
request,
_('You do not have privilege to vote for suggestions!')
......
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