mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Additional filters
This commit is contained in:
parent
a449d3b445
commit
9551c7bd6e
@ -89,6 +89,15 @@ class UserFilters extends QueryFilters
|
||||
->where('account_id', auth()->user()->account_id);
|
||||
}
|
||||
|
||||
public function sending_users(string $value = ''): Builder
|
||||
{
|
||||
if (strlen($value) == 0 || $value != 'true') {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
return $this->builder->whereNotNull('oauth_user_refresh_token');
|
||||
}
|
||||
|
||||
/**
|
||||
* Exclude a list of user_ids, can pass multiple
|
||||
* user IDs by separating them with a comma.
|
||||
|
@ -33,7 +33,7 @@ class GenericReportRequest extends Request
|
||||
'start_date' => 'bail|required_if:date_range,custom|nullable|date',
|
||||
'report_keys' => 'present|array',
|
||||
'send_email' => 'required|bool',
|
||||
'status' => 'sometimes|string|nullable|in:all,draft,sent,viewed,paid,unpaid,overdue',
|
||||
// 'status' => 'sometimes|string|nullable|in:all,draft,sent,viewed,paid,unpaid,overdue',
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user