# frozen_string_literal: true
class Staff::PeopleController < ApplicationController
before_action :set_person, except: :index
# GET /staff/people
def index
authorize %i[staff person]
@people = policy_scope(
::Person,
policy_scope_class: Staff::PersonPolicy::Scope,
)
end
# GET /staff/people/:id
def show
authorize [:staff, @person]
private
def set_person
@person = Person.find params[:id]