diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-22 15:44:48 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-22 15:48:58 +0200 |
commit | 951e3459e1d7c0f0caa5371d9c5edf7d0168168f (patch) | |
tree | f5bc7ba572c132435711b326207afe312a4ede5c /app | |
parent | d5398e9656c1174d4d5be5a8cdad2a26d7587a27 (diff) | |
download | gitlab-ce-951e3459e1d7c0f0caa5371d9c5edf7d0168168f.tar.gz |
Use the `can?` helper instead of `current_user.can?`15513-fix-undefined-can-method
Fixes #15513.
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/project_members/_shared_group_members.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/project_members/_shared_group_members.html.haml b/app/views/projects/project_members/_shared_group_members.html.haml index 62888e41935..ae13f8428f0 100644 --- a/app/views/projects/project_members/_shared_group_members.html.haml +++ b/app/views/projects/project_members/_shared_group_members.html.haml @@ -8,7 +8,7 @@ group, members with %strong #{group_links.human_access} role (#{shared_group_users_count}) - - if current_user.can?(:admin_group, shared_group) + - if can?(current_user, :admin_group, shared_group) .panel-head-actions = link_to group_group_members_path(shared_group), class: 'btn btn-sm' do %i.fa.fa-pencil-square-o |