Skip to content

Commit

Permalink
Only show staff members
Browse files Browse the repository at this point in the history
  • Loading branch information
PencilAmazing committed Jan 9, 2025
1 parent a125f83 commit aa5b80b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/admin/shifts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit aa5b80b

Please sign in to comment.