mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 20:47:56 +08:00
rewrite banned logic
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user