mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
donated user ignore H&R
This commit is contained in:
@@ -367,4 +367,12 @@ class User extends Authenticatable
|
||||
return true;
|
||||
}
|
||||
|
||||
public function isDonating()
|
||||
{
|
||||
if ($this->donoruntil && $this->donoruntil >= Carbon::now()->toDateTimeString()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user