Explorar el Código

Fix support for getting only "own" records

Vijayakrishnan hace 5 años
padre
commit
753eb37bb5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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])
                         ];
                     }
                 }