mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for user filter sort by
This commit is contained in:
parent
440d1a2afb
commit
a32452f443
@ -50,7 +50,7 @@ class UserFilters extends QueryFilters
|
||||
{
|
||||
$sort_col = explode('|', $sort);
|
||||
|
||||
if (!is_array($sort_col) || count($sort_col) != 2) {
|
||||
if (!is_array($sort_col) || count($sort_col) != 2 || !in_array($sort_col, \Illuminate\Support\Facades\Schema::getColumnListing('users'))) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user