<?php

namespace App\Modules\HR\Recruitment\Requests;

use App\Modules\HR\Recruitment\Models\RecruitmentInterview;

class UpdateInterviewRequest extends StoreInterviewRequest
{
    public function authorize(): bool
    {
        $row = $this->route('interview');

        return $row instanceof RecruitmentInterview
            && ($this->user()?->can('update', $row) ?? false);
    }
}
