mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
donate until blank valid forever
This commit is contained in:
@@ -434,7 +434,11 @@ class User extends Authenticatable
|
||||
|
||||
public function isDonating()
|
||||
{
|
||||
if ($this->donor == 'yes' && $this->donoruntil && $this->donoruntil->gte(Carbon::now())) {
|
||||
$rawDonorUntil = $this->getRawOriginal('donoruntil');
|
||||
if (
|
||||
$this->donor == 'yes'
|
||||
&& ($rawDonorUntil === null || $rawDonorUntil == '0000-00-00 00:00:00' || $this->donoruntil->gte(Carbon::now()))
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user