소스 검색

Minor update Models\Rules\Profile

Visman 4 년 전
부모
커밋
cb6bc89627
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      app/Models/Rules/Profile.php

+ 5 - 1
app/Models/Rules/Profile.php

@@ -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
+                )
             );
     }