Update Rules\Profile

Add sendPM property.
This commit is contained in:
Visman 2021-03-20 22:13:40 +07:00
parent 2af02b0286
commit ae0954f83a

View file

@ -102,6 +102,16 @@ class Profile extends Rules
return false;
}
protected function getsendPM(): bool
{
return $this->user->usePM
&& ! $this->my
&& (
$this->user->isAdmin
|| $this->curUser->usePM
);
}
protected function getviewLastVisit(): bool
{
return $this->my || $this->user->isAdmMod;