Help text for only users who have permission

Created on 2 January 2025, 21 days ago

Problem/Motivation

Currently, when a user does not have permission to edit locks, they still get the help text "Locks can be configured when the section has been added." when adding a new section.

Steps to reproduce

As a user without permission to edit locks, ("manage lock settings on sections"), add a new section to a layout builder layout. Choose a section, and when there is the text field for the "Administrative label", below it you will see some help text that says: "Locks can be configured when the section has been added."

Proposed resolution

Perform a similar permissions check to what is already done in the module to show the form, but perform it for the help text as well. Forthcoming MR with code changes.

Remaining tasks

Create the MR.

User interface changes

Yes - the help text will only show for users with the permission to alter locks.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States codechefmarc

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024