mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 18:37:31 +08:00
add donate until
This commit is contained in:
+1
-1
@@ -434,7 +434,7 @@ class User extends Authenticatable
|
||||
|
||||
public function isDonating()
|
||||
{
|
||||
if ($this->donoruntil && $this->donoruntil >= Carbon::now()->toDateTimeString()) {
|
||||
if ($this->donor == 'yes' && $this->donoruntil && $this->donoruntil->gte(Carbon::now())) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user