add new blade for reports
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user