浏览代码

Minor change Models\User\Model

Visman 4 年之前
父节点
当前提交
8f4448e6d2
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      app/Models/User/Model.php

+ 3 - 2
app/Models/User/Model.php

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