소스 검색

Fix support for getting only "own" records

Vijayakrishnan 5 년 전
부모
커밋
753eb37bb5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Console/Commands/GenerateTreeCommand.php

+ 1 - 1
app/Console/Commands/GenerateTreeCommand.php

@@ -87,7 +87,7 @@ class GenerateTreeCommand extends Command
                         $parts = explode("=", $parts[1]);
                         $condition = [
                             "field" => $parts[0],
-                            "value" => str_replace("OWN", "Auth::user()->id" , $parts[1])
+                            "value" => str_replace("OWN", "session('proId')" , $parts[1])
                         ];
                     }
                 }