Commit 23b3f0518b888a381d1b2a34e5986f058f1781ba

Authored by Dmitriy Zaporozhets
1 parent a6e44bfd

Team admin should be able to see settings tab

app/views/layouts/nav/_team.html.haml
... ... @@ -18,7 +18,7 @@
18 18 Members
19 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 22 = nav_link(path: 'teams#edit') do
23 23 = link_to edit_team_path(@team), class: "stat-tab tab " do
24 24 Settings
... ...
app/views/teams/edit.html.haml
... ... @@ -5,8 +5,9 @@
5 5 = link_to 'Projects', '#tab-projects', 'data-toggle' => 'tab'
6 6 %li
7 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 12 .span9
12 13 .tab-content
... ...