mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-15 17:59:39 +00:00
Finished setting owner for tournamenr and protecting paths
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<br>
|
||||
<% end %>
|
||||
<br>
|
||||
<% if user_signed_in? %>
|
||||
<% if tournament_permissions(@tournament) %>
|
||||
<%= form_for(@tournament) do |f| %>
|
||||
<div class="field">
|
||||
<%= f.label :weigh_in_ref %><br>
|
||||
@@ -56,8 +56,8 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<%= hidden_field_tag :tournament, @tournament_id %>
|
||||
<% if user_signed_in? %>
|
||||
<% if tournament_permissions(@tournament) %>
|
||||
<%= submit_tag "Save", :class=>"btn btn-success"%>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user