Minor update Models\Rules\Profile

This commit is contained in:
Visman 2021-03-30 14:08:04 +07:00
parent dd43941cab
commit cb6bc89627

View file

@ -105,10 +105,14 @@ class Profile extends Rules
protected function getsendPM(): bool
{
return $this->user->usePM
&& 1 === $this->user->u_pm
&& ! $this->my
&& (
$this->user->isAdmin
|| $this->curUser->usePM
|| (
$this->curUser->usePM
&& 1 === $this->curUser->u_pm
)
);
}