aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/templates/index_base.html
diff options
context:
space:
mode:
Diffstat (limited to 'rhodecode/templates/index_base.html')
-rw-r--r--rhodecode/templates/index_base.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/rhodecode/templates/index_base.html b/rhodecode/templates/index_base.html
index 7bdccaf6..5bb79fd8 100644
--- a/rhodecode/templates/index_base.html
+++ b/rhodecode/templates/index_base.html
@@ -10,7 +10,9 @@
%if h.HasPermissionAny('hg.admin','hg.create.repository')():
<li>
%if c.group:
- <span>${h.link_to(_('Add repository'),h.url('admin_settings_create_repository',parent_group=c.group.group_id))}</span>
+ %if h.HasReposGroupPermissionAny('group.write', 'group.admin')(c.group.group_name):
+ <span>${h.link_to(_('Add repository'),h.url('admin_settings_create_repository',parent_group=c.group.group_id))}</span>
+ %endif
%else:
<span>${h.link_to(_('Add repository'),h.url('admin_settings_create_repository'))}</span>
%endif