Commit 23b3f0518b888a381d1b2a34e5986f058f1781ba
1 parent
a6e44bfd
Exists in
master
and in
4 other branches
Team admin should be able to see settings tab
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
app/views/layouts/nav/_team.html.haml
@@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
18 | Members | 18 | Members |
19 | %span.count= @team.members.count | 19 | %span.count= @team.members.count |
20 | 20 | ||
21 | - - if can? current_user, :admin_user_team, @team | 21 | + - if can? current_user, :manage_user_team, @team |
22 | = nav_link(path: 'teams#edit') do | 22 | = nav_link(path: 'teams#edit') do |
23 | = link_to edit_team_path(@team), class: "stat-tab tab " do | 23 | = link_to edit_team_path(@team), class: "stat-tab tab " do |
24 | Settings | 24 | Settings |
app/views/teams/edit.html.haml
@@ -5,8 +5,9 @@ | @@ -5,8 +5,9 @@ | ||
5 | = link_to 'Projects', '#tab-projects', 'data-toggle' => 'tab' | 5 | = link_to 'Projects', '#tab-projects', 'data-toggle' => 'tab' |
6 | %li | 6 | %li |
7 | = link_to 'Edit Team', '#tab-edit', 'data-toggle' => 'tab' | 7 | = link_to 'Edit Team', '#tab-edit', 'data-toggle' => 'tab' |
8 | - %li | ||
9 | - = link_to 'Remove', '#tab-remove', 'data-toggle' => 'tab' | 8 | + - if can? current_user, :admin_user_team, @team |
9 | + %li | ||
10 | + = link_to 'Remove', '#tab-remove', 'data-toggle' => 'tab' | ||
10 | 11 | ||
11 | .span9 | 12 | .span9 |
12 | .tab-content | 13 | .tab-content |