From 23b3f0518b888a381d1b2a34e5986f058f1781ba Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 13 Jun 2013 10:24:01 +0300 Subject: [PATCH] Team admin should be able to see settings tab --- app/views/layouts/nav/_team.html.haml | 2 +- app/views/teams/edit.html.haml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/nav/_team.html.haml b/app/views/layouts/nav/_team.html.haml index 415e451..575c5b7 100644 --- a/app/views/layouts/nav/_team.html.haml +++ b/app/views/layouts/nav/_team.html.haml @@ -18,7 +18,7 @@ Members %span.count= @team.members.count - - if can? current_user, :admin_user_team, @team + - if can? current_user, :manage_user_team, @team = nav_link(path: 'teams#edit') do = link_to edit_team_path(@team), class: "stat-tab tab " do Settings diff --git a/app/views/teams/edit.html.haml b/app/views/teams/edit.html.haml index c9d573e..7f2273e 100644 --- a/app/views/teams/edit.html.haml +++ b/app/views/teams/edit.html.haml @@ -5,8 +5,9 @@ = link_to 'Projects', '#tab-projects', 'data-toggle' => 'tab' %li = link_to 'Edit Team', '#tab-edit', 'data-toggle' => 'tab' - %li - = link_to 'Remove', '#tab-remove', 'data-toggle' => 'tab' + - if can? current_user, :admin_user_team, @team + %li + = link_to 'Remove', '#tab-remove', 'data-toggle' => 'tab' .span9 .tab-content -- libgit2 0.21.2