|
@@ -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"]];
|