Commit 6625bdf5 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

Fix override update validation rule

parent c0ff356d
Pipeline #11139 passed with stages
in 3 minutes and 13 seconds
......@@ -61,8 +61,8 @@ class OverridesController extends ApiController
$this->authorizer->protect(Permissions::MANAGE_DOORS);
$this->validate($this->request, [
'reason' => 'string|max:1024',
'start' => 'date|required_if:end|before:end',
'end' => 'date|required_if:start|after:start',
'start' => 'date|required_with:end|before:end',
'end' => 'date|required_with:start|after:start',
]);
$presenter = new OverrideCreateApiPresenter();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment