Field element still visible when no actions allowed

Created on 5 August 2021, over 3 years ago
Updated 7 May 2024, 7 months ago

Problem/Motivation

Some users do not have permission to create/edit/delete any entities in a complex IEF widget on a given node. For those users, the field is not properly hidden and prints the header with an empty div (screenshot)

Steps to reproduce

I can replicate this on a clean install of simplytest.me for example:

- Add entity ref field on 'article' type allowing 'page' only
- Configure form display to use IEF complex widget
- Create user with access to create article but NOT to create page
- Field is printing with empty fieldset

Proposed resolution

Hide field if no access is present

Remaining tasks

Write patch

User interface changes

Users without access will no longer see an empty field

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States trwill

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024