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

Include change_translation permissions for default groups for API access

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 9a3b626a
......@@ -883,6 +883,7 @@ def create_groups(update):
group, created = Group.objects.get_or_create(name='Users')
if created or update:
group.permissions.add(
Permission.objects.get(codename='change_translation'),
Permission.objects.get(codename='upload_translation'),
Permission.objects.get(codename='overwrite_translation'),
Permission.objects.get(codename='save_translation'),
......@@ -906,6 +907,7 @@ def create_groups(update):
AutoGroup.objects.create(group=group, match='^.*$')
owner_permissions = (
Permission.objects.get(codename='change_translation'),
Permission.objects.get(codename='author_translation'),
Permission.objects.get(codename='upload_translation'),
Permission.objects.get(codename='overwrite_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