Add access check for sidebar edit button
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3000387. -->
Reported by: [justcaldwell](https://www.drupal.org/user/290069)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The 'edit content/draft' button shows for all users who can use the moderation sidebar, regardless of whether the user can edit the item. Clicking the button yields Access Denied.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add an entity 'update' access check.</p>
issue