From dbe404d9ade2d36bad890f884f91a875d4e419f3 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Mon, 23 Oct 2017 21:58:49 +0200 Subject: [PATCH] Fix Officer final recount access without voting shift --- app/controllers/officing/base_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/officing/base_controller.rb b/app/controllers/officing/base_controller.rb index e73f2b696..96f185d24 100644 --- a/app/controllers/officing/base_controller.rb +++ b/app/controllers/officing/base_controller.rb @@ -20,10 +20,7 @@ class Officing::BaseController < ApplicationController end def load_officer_assignment - @officer_assignments ||= current_user.poll_officer. - officer_assignments. - voting_days. - where(date: Time.current.to_date) + @officer_assignments ||= current_user.poll_officer.officer_assignments.where(date: Time.current.to_date) end def verify_officer_assignment