Minor update Models\Rules\Profile
This commit is contained in:
parent
dd43941cab
commit
cb6bc89627
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue