summaryrefslogtreecommitdiff
path: root/app/views/groups
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-04-11 19:36:56 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-04-11 19:36:56 +0300
commit525ea066877d82d3a3ed0ed0025866753b794290 (patch)
treebb3809f055c4b70d499b807e11c1547f970d7330 /app/views/groups
parentc6701fef0e2082e1adae15adb97c75311115617f (diff)
downloadgitlab-ce-525ea066877d82d3a3ed0ed0025866753b794290.tar.gz
Move permission to create subgroup into GroupPolicy
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/groups')
-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 3342ba118ef..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 current_user.can_create_subgroup? @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