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

Add privileges needed for some features

parent cacb9266
......@@ -244,6 +244,9 @@ class SubProject(models.Model):
class Meta:
ordering = ['name']
permissions = (
('lock_translation', "Can lock whole translation project"),
)
@models.permalink
def get_absolute_url(self):
......@@ -712,6 +715,7 @@ class Translation(models.Model):
('commit_translation', "Can force commiting of translation"),
('update_translation', "Can update translation from git"),
('push_translation', "Can push translations to remote git"),
('reset_translation', "Can reset translations to match remote git"),
('automatic_translation', "Can do automatic 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