Update Rules\Profile
Add sendPM property.
This commit is contained in:
parent
2af02b0286
commit
ae0954f83a
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue