From dd23d1246d37bf68ee8e5c4272354aefa41f8b64 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Wed, 23 Dec 2015 14:54:30 +0000 Subject: [PATCH] All brackets only accessable by tournament owner --- app/views/tournaments/brackets.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/tournaments/brackets.html.erb b/app/views/tournaments/brackets.html.erb index 875b3bf..6e295c2 100644 --- a/app/views/tournaments/brackets.html.erb +++ b/app/views/tournaments/brackets.html.erb @@ -5,4 +5,6 @@ <%= link_to "#{weight.max}" , "/tournaments/#{@tournament.id}/brackets/#{weight.id}" %>
<% end %> -<%= link_to "All Brackets", "/tournaments/#{@tournament.id}/all_brackets?print=true" %> \ No newline at end of file +<% if tournament_permissions(@tournament) %> + <%= link_to "All Brackets (Printable)", "/tournaments/#{@tournament.id}/all_brackets?print=true" %> +<% end %>