Commit 5f9fb4e4 authored by Michal Čihař's avatar Michal Čihař

Merge remote-tracking branch 'lukakama/master'

parents 31d9aae2 31116b18
......@@ -577,6 +577,7 @@ def create_groups(update):
Permission.objects.get(codename='change_dictionary'),
Permission.objects.get(codename='delete_dictionary'),
Permission.objects.get(codename='lock_translation'),
Permission.objects.get(codename='can_see_git_repository'),
Permission.objects.get(codename='add_comment'),
)
group, created = Group.objects.get_or_create(name='Managers')
......@@ -602,6 +603,7 @@ def create_groups(update):
Permission.objects.get(codename='lock_subproject'),
Permission.objects.get(codename='reset_translation'),
Permission.objects.get(codename='lock_translation'),
Permission.objects.get(codename='can_see_git_repository'),
Permission.objects.get(codename='add_comment'),
Permission.objects.get(codename='delete_comment'),
)
......
......@@ -247,6 +247,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
)
permissions = (
('lock_subproject', "Can lock translation for translating"),
('can_see_git_repository', "Can see git repository URL"),
)
app_label = 'trans'
......
......@@ -3,6 +3,7 @@
{% with object.project as object %}
{% include "project_info.html" %}
{% endwith %}
{% if perms.trans.can_see_git_repository %}
<p>{% trans "Git repository:" %}
<code class="git-repo ui-corner-all">{{ object.get_repo_url }}</code> ({{ object.get_repo_branch }}
@
......@@ -19,3 +20,4 @@
</p>
{% endif %}
{% endwith %}
{% endif %}
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