diff --git a/src/Form/EntityEmbedDialog.php b/src/Form/EntityEmbedDialog.php index e15affa..2c7b794 100644 --- a/src/Form/EntityEmbedDialog.php +++ b/src/Form/EntityEmbedDialog.php @@ -467,6 +467,7 @@ class EntityEmbedDialog extends FormBase { '#type' => 'button', '#executes_submit_callback' => FALSE, '#value' => $this->t('Edit'), + '#access' => $entity->access('edit'), '#ajax' => [ 'callback' => '::submitAndShowEntityEdit', 'event' => 'click',