gin_form_after_build does not transfer #access to sticky actions menu

Created on 12 November 2024, 9 days ago

Problem/Motivation

When new label elements are created for the sticky actions menu, the `#access` key is not considered, resulting in menu items appearing that should not be.

Marked as critical as it can display elements to editor that they should not be able to see. Drupal permissions generally still block the action.

Steps to reproduce

  1. Disable previews on node content type (/admin/structure/types/manage/)
  2. Navigate to add/edit page for entity of that type
  3. Preview button is visible when it should not be

Proposed resolution

Ensure `#access` is included in $new_label array.

Remaining tasks

  • Review

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom alexj12

Live updates comments and jobs are added and updated live.
  • Security

    It is used for security vulnerabilities which do not need a security advisory. For example, security issues in projects which do not have security advisory coverage, or forward-porting a change already disclosed in a security advisory. See Drupal’s security advisory policy for details. Be careful publicly disclosing security vulnerabilities! Use the “Report a security vulnerability” link in the project page’s sidebar. See how to report a security issue for details.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024