Minor change Models\User\Model

This commit is contained in:
Visman 2021-03-31 18:01:57 +07:00
parent d492f21b45
commit 8f4448e6d2

View file

@ -32,6 +32,7 @@ class Model extends DataModel
'show_avatars' => ['showAvatar'],
'signature' => ['isSignature'],
'email' => ['email_normal'],
'g_pm' => ['usePM'],
];
}
@ -398,8 +399,8 @@ class Model extends DataModel
{
return 1 === $this->c->config->b_pm
&& (
$this->isAdmin
|| 1 == $this->g_pm
1 == $this->g_pm
|| $this->isAdmin
);
}
}