From b5ab929270baf74fef47a133bc922d0dadeb8552 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 2 Jan 2023 22:08:31 -0500 Subject: [PATCH] Hide one more text on tournament show page depending on if tournament is public or not --- app/views/tournaments/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index a010fdd..0257125 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -25,7 +25,7 @@ Tournament Information Is Public: <%= @tournament.is_public %>

-

Brackets and team scores can be found in the white nav-bar up top.

+<% if can? :read, @tournament %>

Brackets and team scores can be found in the white nav-bar up top.

<% end %>

Schools

Click to see lineups, bout numbers, score breakdowns, and stats.