rewrite banned logic

This commit is contained in:
Tokumeikoi
2020-02-28 16:21:16 +08:00
parent 9932e34634
commit 6e98e42f51
5 changed files with 41 additions and 42 deletions

View File

@ -15,7 +15,7 @@ class UserService
public function isAvailable()
{
if ($this->user->transfer_enable && ($this->user->expired_at > time() || $this->user->expired_at == 0)) {
if ($this->user->enable && $this->user->transfer_enable && ($this->user->expired_at > time() || $this->user->expired_at == 0)) {
return true;
}
return false;