Run PSR2 Lint cleaner

This commit is contained in:
Damian Mooyman 2019-10-04 13:26:31 +13:00
parent f1594fd991
commit d7752b7945
No known key found for this signature in database
GPG Key ID: 19B1752E86A700BB
11 changed files with 19 additions and 20 deletions

View File

@ -224,8 +224,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
if ($this->record->canDelete()) {
$form->Actions()->fieldByName('action_doDelete')->setReadonly(false);
}
} elseif (
!$this->record->ID
} elseif (!$this->record->ID
&& !$this->record->canCreate(null, $this->getCreateContext())
) {
// Restrict creation of new records