Commit 23b3f051 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Team admin should be able to see settings tab

parent a6e44bfd
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
Members Members
%span.count= @team.members.count %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 = nav_link(path: 'teams#edit') do
= link_to edit_team_path(@team), class: "stat-tab tab " do = link_to edit_team_path(@team), class: "stat-tab tab " do
Settings Settings
......
...@@ -5,8 +5,9 @@ ...@@ -5,8 +5,9 @@
= link_to 'Projects', '#tab-projects', 'data-toggle' => 'tab' = link_to 'Projects', '#tab-projects', 'data-toggle' => 'tab'
%li %li
= link_to 'Edit Team', '#tab-edit', 'data-toggle' => 'tab' = link_to 'Edit Team', '#tab-edit', 'data-toggle' => 'tab'
%li - if can? current_user, :admin_user_team, @team
= link_to 'Remove', '#tab-remove', 'data-toggle' => 'tab' %li
= link_to 'Remove', '#tab-remove', 'data-toggle' => 'tab'
.span9 .span9
.tab-content .tab-content
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment