Commit 6c22c34e authored by marcvangend's avatar marcvangend Committed by Sutharsan

REVERTS issue #2613144 by marcvangend: Field default value does not show in the block

parent 5c954755
......@@ -368,7 +368,7 @@ class FieldBlock extends BlockBase implements ContainerFactoryPluginInterface {
if ($entity) {
$field = $entity->get($this->configuration['field_name']);
return AccessResult::allowedIf($field->access('view', $account));
return AccessResult::allowedIf(!$field->isEmpty() && $field->access('view', $account));
return AccessResult::forbidden();
Markdown is supported
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