mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Guard against unrelated category
This commit is contained in:
parent
c66267a0f9
commit
695428cd44
|
@ -305,7 +305,7 @@ class Accessory extends SnipeModel
|
|||
*/
|
||||
public function requireAcceptance()
|
||||
{
|
||||
return $this->category->require_acceptance;
|
||||
return $this->category->require_acceptance ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue