Guard against unrelated category

This commit is contained in:
Marcus Moore 2024-03-07 16:59:01 -08:00
parent c66267a0f9
commit 695428cd44
No known key found for this signature in database

View file

@ -305,7 +305,7 @@ class Accessory extends SnipeModel
*/
public function requireAcceptance()
{
return $this->category->require_acceptance;
return $this->category->require_acceptance ?? false;
}
/**