summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb2
-rw-r--r--app/views/matches/show.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 6e439fb..70e7f25 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -19,7 +19,7 @@ class User < ActiveRecord::Base
when :admin
return ((groups & 2) != 0)
when :host
- return true #((groups & 1) != 0)
+ return ((groups & 1) != 0)
when :player
return true
when :specator
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index 3a7e7a6..b6930ea 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -12,7 +12,7 @@
<%= form_for([@tournament, @match], method: "put") do |f| %>
<ul>
<% @match.teams.each do |team| %>
- <li><label><%= f.radio_button(:winner_id, team.id) %>
+ <li><label><%= f.radio_button(:winner, team.id) %>
<%= team.users.collect{|u| u.user_name}.join(", ") %></label></li>
<% end %>
</ul>