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

Privileges for suggestion voting (issue #248)

parent 539d1f3e
......@@ -554,6 +554,7 @@ def create_groups(update):
Permission.objects.get(codename='automatic_translation'),
Permission.objects.get(codename='save_translation'),
Permission.objects.get(codename='accept_suggestion'),
Permission.objects.get(codename='override_suggestion'),
Permission.objects.get(codename='delete_suggestion'),
Permission.objects.get(codename='ignore_check'),
Permission.objects.get(codename='upload_dictionary'),
......
......@@ -359,6 +359,7 @@ Weblate uses privileges system based on Django. It defines following extra privi
* Can save translation [Users, Managers]
* Can accept suggestion [Users, Managers]
* Can accept suggestion [Users, Managers]
* Can override suggestion state [Managers]
* Can import dictionary [Users, Managers]
* Can add dictionary [Users, Managers]
* Can change dictionary [Users, Managers]
......
......@@ -106,6 +106,7 @@ class Suggestion(models.Model, RelatedUnitMixin):
class Meta:
permissions = (
('accept_suggestion', "Can accept suggestion"),
('override_suggestion', 'Can override suggestion state'),
)
app_label = 'trans'
......
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