mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #15245 from spencerrlongg/bug/acceptance_issue
Fixed Issue with Acceptances Being Created
This commit is contained in:
commit
8094f3c0e1
|
@ -137,6 +137,10 @@ class CheckoutableListener
|
||||||
*/
|
*/
|
||||||
private function getCheckoutAcceptance($event)
|
private function getCheckoutAcceptance($event)
|
||||||
{
|
{
|
||||||
|
$checkedOutToType = get_class($event->checkedOutTo);
|
||||||
|
if ($checkedOutToType != "App\Models\User") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (!$event->checkoutable->requireAcceptance()) {
|
if (!$event->checkoutable->requireAcceptance()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue