diff --git a/app/controllers/admin/shifts_controller.rb b/app/controllers/admin/shifts_controller.rb index c0d893d69..9384386c8 100644 --- a/app/controllers/admin/shifts_controller.rb +++ b/app/controllers/admin/shifts_controller.rb @@ -10,6 +10,7 @@ class Admin::ShiftsController < AdminAreaController def index @staff = User + .staff .where(id: StaffSpace.where(space_id: @space_id).pluck(:user_id)) .order("LOWER(name) ASC") .pluck(:name, :id) @@ -35,6 +36,7 @@ def index def shifts @staff = User + .staff .where(id: StaffSpace.where(space_id: @space_id).pluck(:user_id)) .order("LOWER(name) ASC") .pluck(:name, :id)