From cffd70e9f631b93b2245ca3426355d99508da9fe Mon Sep 17 00:00:00 2001 From: jcwimer Date: Fri, 8 Jan 2016 13:17:30 +0000 Subject: [PATCH] Only tournament owners can delegate tournament permissions --- app/views/layouts/_lsidebar.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_lsidebar.html.erb b/app/views/layouts/_lsidebar.html.erb index ff69005..48df452 100644 --- a/app/views/layouts/_lsidebar.html.erb +++ b/app/views/layouts/_lsidebar.html.erb @@ -21,7 +21,9 @@
<%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in" %>
<%= link_to "All Matches" , "/tournaments/#{@tournament.id}/matches" %>
<%= link_to "Full Screen Bout Board" , "/tournaments/#{@tournament.id}/up_matches?print=true" %> -
<%= link_to "Tournament Delegation" , "/tournaments/#{@tournament.id}/delegate" %> + <% if can? :destroy, @tournament %> +
<%= link_to "Tournament Delegation" , "/tournaments/#{@tournament.id}/delegate" %> + <% end %>
<%= link_to "School Delegation" , "/tournaments/#{@tournament.id}/school_delegate"%>

Time Savers