Minor change Models\User\Model
This commit is contained in:
parent
d492f21b45
commit
8f4448e6d2
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue