add new blade for reports

This commit is contained in:
2025-02-04 13:09:27 +03:30
parent 967d0e6db8
commit cd9d8211f4
7 changed files with 228 additions and 9 deletions

View File

@@ -50,7 +50,7 @@ class FilterValidator
protected function isAllowed(Filter $filter, array $allowedFilters): bool
{
return in_array($filter->getId(), $allowedFilters);
return $allowedFilters == ['*'] || in_array($filter->getId(), $allowedFilters);
}
protected function isValidSearchFunction(Filter $filter): bool

View File

@@ -34,6 +34,6 @@ class SortingValidator
protected function isAllowed(Sort $sorting, array $allowedSortings): bool
{
return in_array($sorting->getId(), $allowedSortings);
return $allowedSortings == ['*'] || in_array($sorting->getId(), $allowedSortings);
}
}