Access control isn't enforced within inline entity form

Created on 18 January 2024, 6 months ago

Problem/Motivation

Custom publishing option fields inside an inline entity form do not have their field access enforced.

Steps to reproduce

Configure an entity to have an entity reference field to content with custom publish options and set the form widget to one provided by the inline_entity_form module. Log in as a user who does not have access to set custom publish options. From the entity's form, note the inline entity form shows the custom publish option fields even though the user should not have permission.

Proposed resolution

Implement hook_inline_entity_form_entity_form_alter() to mirror access control provided in custom_pub_form_node_form_alter().

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States greenSkin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024