Explorar el Código

去掉一些人才类别的显示

sandm hace 1 año
padre
commit
17e18dc2a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/common/api/FileTypeApi.php

+ 1 - 1
app/common/api/FileTypeApi.php

@@ -23,7 +23,7 @@ class FileTypeApi {
             $where[] = ["project", "=", $params["project"]];
         }
         if ($params["type"]) {
-            $where[] = ["type", "=", $params["type"]];
+            $where[] = ["type", "=", session('user')['type']];
         }
         if ($params["must"]) {
             $where[] = ["must", "=", $params["must"]];