summaryrefslogtreecommitdiff
path: root/app/views/groups/subgroups.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/groups/subgroups.html.haml')
-rw-r--r--app/views/groups/subgroups.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/groups/subgroups.html.haml b/app/views/groups/subgroups.html.haml
index be809083139..8f0724c0677 100644
--- a/app/views/groups/subgroups.html.haml
+++ b/app/views/groups/subgroups.html.haml
@@ -9,7 +9,7 @@
.nav-controls
= form_tag request.path, method: :get do |f|
= search_field_tag :filter_groups, params[:filter_groups], placeholder: 'Filter by name', class: 'form-control', spellcheck: false
- - if can? current_user, :admin_group, @group
+ - if can?(current_user, :create_subgroup, @group)
= link_to new_group_path(parent_id: @group.id), class: 'btn btn-new pull-right' do
New Subgroup