mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Enable recur for self hosters
This commit is contained in:
parent
40dbbb2ce2
commit
644c905961
@ -15,6 +15,18 @@ trait HasRecurrence
|
||||
* @return bool
|
||||
*/
|
||||
public function shouldSendToday()
|
||||
{
|
||||
if (Utils::isSelfHost()) {
|
||||
return $this->shouldSendTodayNew();
|
||||
} else {
|
||||
return $this->shouldSendTodayOld();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function shouldSendTodayOld()
|
||||
{
|
||||
if (! $this->user->confirmed) {
|
||||
return false;
|
||||
@ -79,8 +91,7 @@ trait HasRecurrence
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
public function shouldSendToday()
|
||||
public function shouldSendTodayNew()
|
||||
{
|
||||
if (! $this->user->confirmed) {
|
||||
return false;
|
||||
@ -114,7 +125,6 @@ trait HasRecurrence
|
||||
return $this->account->getDateTime() >= $nextSendDate;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @throws \Recurr\Exception\MissingData
|
||||
|
Loading…
x
Reference in New Issue
Block a user