Remove empty parameter as per feedback

This commit is contained in:
Dan Hensby 2020-04-02 12:11:35 +01:00
parent 9e0ed0a50a
commit d1075f29b8
No known key found for this signature in database
GPG Key ID: F76D6B5FE0626A99

View File

@ -114,7 +114,6 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
$this->httpError(403, _t(
__CLASS__ . '.ViewPermissionsFailure',
'It seems you don\'t have the necessary permissions to view {ObjectTitle}',
'',
['ObjectTitle' => $this->record->singular_name()]
));
}
@ -197,7 +196,6 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
return $controller->httpError(403, _t(
__CLASS__ . '.ViewPermissionsFailure',
'It seems you don\'t have the necessary permissions to view {ObjectTitle}',
'',
['ObjectTitle' => $this->record->singular_name()]
));
}
@ -502,7 +500,6 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
$this->httpError(403, _t(
__CLASS__ . '.EditPermissionsFailure',
'It seems you don\'t have the necessary permissions to edit {ObjectTitle}',
'',
['ObjectTitle' => $this->record->singular_name()]
));
return null;