Fix Officer final recount access without voting shift

This commit is contained in:
Bertocq
2017-10-23 21:58:49 +02:00
committed by Javi Martín
parent 607b2362a3
commit dbe404d9ad

View File

@@ -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