浏览代码

Fix User model

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

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

@@ -56,8 +56,8 @@ class User extends DataModel
     protected function getisGuest(): bool
     {
         return FORK_GROUP_GUEST === $this->group_id
-            || null === $this->group_id;
-            || $this->id < 1
+            || null === $this->group_id
+            || $this->id < 1;
     }
 
     /**