Commit 1d8c927f authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

Merge remote-tracking branch 'origin/master' into 74-d-o-c-u-m-e-n-t-a-t-i-o-n

parents 7d07703e aac9690c
......@@ -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();
......
......@@ -15,7 +15,7 @@ class APIPresenter extends BasePresenter implements Presenter
/** @inheritDoc */
public function present(ResponseModel $responseModel): void
{
$this->groups['groups'] = array_map(static function (Group $group) {
$this->groups = array_map(static function (Group $group) {
return [
'id' => $group->getId(),
'title' => $group->getTitle(),
......
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