mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Extra validation and a new config variable for #10806
This commit is contained in:
@@ -64,6 +64,7 @@ class ChartRequest extends FormRequest
|
|||||||
'end' => 'required|date|after:1970-01-02|before:2038-01-17|after_or_equal:start',
|
'end' => 'required|date|after:1970-01-02|before:2038-01-17|after_or_equal:start',
|
||||||
'preselected' => sprintf('nullable|in:%s', implode(',', config('firefly.preselected_accounts'))),
|
'preselected' => sprintf('nullable|in:%s', implode(',', config('firefly.preselected_accounts'))),
|
||||||
'period' => sprintf('nullable|in:%s', implode(',', config('firefly.valid_view_ranges'))),
|
'period' => sprintf('nullable|in:%s', implode(',', config('firefly.valid_view_ranges'))),
|
||||||
|
'accounts' => 'nullable|array',
|
||||||
'accounts.*' => 'exists:accounts,id',
|
'accounts.*' => 'exists:accounts,id',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@@ -52,6 +52,7 @@ class EitherConfigKey
|
|||||||
'firefly.languages',
|
'firefly.languages',
|
||||||
'app.timezone',
|
'app.timezone',
|
||||||
'firefly.valid_view_ranges',
|
'firefly.valid_view_ranges',
|
||||||
|
'firefly.preselected_accounts',
|
||||||
|
|
||||||
// triggers and actions:
|
// triggers and actions:
|
||||||
'firefly.rule-actions',
|
'firefly.rule-actions',
|
||||||
|
Reference in New Issue
Block a user