diff options
author | Phil Hughes <me@iamphill.com> | 2016-12-05 19:24:56 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-12-05 19:24:56 +0300 |
commit | cae90506fb3bdf8412d241a21a1f0fe2d96393b6 (patch) | |
tree | 03cb9930f3ebfae3d5171b94ddcf4e0aea0b50fc | |
parent | cc66ec2b73d6fa581f5300957597615ed1b58c55 (diff) |
Fixed if statement to use global group & project variables
-rw-r--r-- | app/views/shared/members/_member.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/members/_member.html.haml b/app/views/shared/members/_member.html.haml index aa5b39151e6..e67f7d5a352 100644 --- a/app/views/shared/members/_member.html.haml +++ b/app/views/shared/members/_member.html.haml @@ -45,7 +45,7 @@ = time_ago_with_tooltip(member.created_at) - if show_roles .controls.member-controls - - if show_controls && (member.respond_to?(:group) && @members) || (member.respond_to?(:project) && @project_members) + - if show_controls && (member.respond_to?(:group) && @group) || (member.respond_to?(:project) && @project) - if user != current_user = form_for member, remote: true, html: { class: 'form-horizontal js-edit-member-form' } do |f| = f.select :access_level, options_for_select(member.class.access_level_roles, member.access_level), {}, class: 'form-control member-form-control append-right-5 js-member-update-control', id: "member_access_level_#{member.id}", disabled: !can_admin_member |