mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fixes #4075 - this is janky and should be revisited
This commit is contained in:
parent
878bde67ac
commit
e37503c734
|
@ -41,10 +41,12 @@ class CheckinNotification extends Notification
|
||||||
$notifyBy[] = 'slack';
|
$notifyBy[] = 'slack';
|
||||||
}
|
}
|
||||||
$item = $this->params['item'];
|
$item = $this->params['item'];
|
||||||
if ((method_exists($item, 'requireAcceptance') && ($item->requireAcceptance()=='1'))
|
if (class_basename(get_class($this->params['item']))=='Asset') {
|
||||||
|| (method_exists($item, 'getEula') && ($item->getEula()))
|
if ((method_exists($item, 'requireAcceptance') && ($item->requireAcceptance() == '1'))
|
||||||
) {
|
|| (method_exists($item, 'getEula') && ($item->getEula()))
|
||||||
$notifyBy[] = 'mail';
|
) {
|
||||||
|
$notifyBy[] = 'mail';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $notifyBy;
|
return $notifyBy;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ class CheckoutNotification extends Notification
|
||||||
}
|
}
|
||||||
$item = $this->params['item'];
|
$item = $this->params['item'];
|
||||||
|
|
||||||
if (class_basename(get_class($this->params['item']))!='License') {
|
if (class_basename(get_class($this->params['item']))=='Asset') {
|
||||||
$notifyBy[] = 'mail';
|
$notifyBy[] = 'mail';
|
||||||
}
|
}
|
||||||
// if ((method_exists($item, 'requireAcceptance') && ($item->requireAcceptance()=='1'))
|
// if ((method_exists($item, 'requireAcceptance') && ($item->requireAcceptance()=='1'))
|
||||||
|
|
Loading…
Reference in a new issue