From 29e09891a1e67381fe69c64c450c7f7044aafa7f Mon Sep 17 00:00:00 2001 From: Prommah Date: Thu, 5 Nov 2015 07:59:52 +0000 Subject: [PATCH] Fixed caster selection --- app/views/matches/admin.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 app/views/matches/admin.html.haml diff --git a/app/views/matches/admin.html.haml b/app/views/matches/admin.html.haml old mode 100644 new mode 100755 index a0e589e..047c69d --- a/app/views/matches/admin.html.haml +++ b/app/views/matches/admin.html.haml @@ -34,7 +34,7 @@ - elsif match.can_update?(cuser, {:caster_id => cuser.id}) = form_for match do |f| - if cuser.admin? - = f.collection_select :caster_id, Group.casters, :id, :username, {:include_blank => true}, {:class => "autosubmit"} + = f.collection_select :caster_id, User.casters, :id, :username, {:include_blank => true}, {:class => "autosubmit"} - else = f.hidden_field :caster_id, {:value => cuser.id} = link_to "Take!", "#form_submit"