summaryrefslogtreecommitdiff
path: root/app/views/groups/members.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/groups/members.html.haml')
-rw-r--r--app/views/groups/members.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/groups/members.html.haml b/app/views/groups/members.html.haml
index 124560e4786..3095a2c7b74 100644
--- a/app/views/groups/members.html.haml
+++ b/app/views/groups/members.html.haml
@@ -6,7 +6,6 @@
%strong= link_to "here", help_permissions_path, class: "vlink"
%hr
-- can_manage_group = current_user.can? :manage_group, @group
.ui-box
.title
%strong #{@group.name}
@@ -15,6 +14,6 @@
(#{@members.count})
%ul.well-list
- @members.each do |member|
- = render 'users_groups/users_group', member: member, show_controls: can_manage_group
-- if can_manage_group
+ = render 'users_groups/users_group', member: member, show_controls: true
+- if current_user.can? :manage_group, @group
= render "new_group_member"