mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-11 16:01:56 +00:00
Added logic to delegate tournament access
This commit is contained in:
@@ -5,6 +5,6 @@
|
||||
<%= link_to "#{weight.max}" , "/tournaments/#{@tournament.id}/brackets/#{weight.id}" %>
|
||||
<br>
|
||||
<% end %>
|
||||
<% if tournament_permissions(@tournament) %>
|
||||
<% if can? :manage, @tournament %>
|
||||
<%= link_to "All Brackets (Printable)", "/tournaments/#{@tournament.id}/all_brackets?print=true" %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user