Edit option incorrectly visible in Layers panel for users without "administer code components" permission

Created on 10 July 2025, 6 days ago

Overview

Users without the "administer code components" permission (e.g., Content Creators) can see the Edit Code Component option in the Layers panel, even though they should not have access.

When these users attempt to use this option, they are shown an error message, but the message does not have a close option, and after the error/redirection, the user remains stuck on the same error page.

Expected: The Edit option for code components should not be visible in the Layers panel for users lacking proper permissions. If an error occurs, the message should have a clear close button, and the user should be appropriately redirected.

Steps to Reproduce

  1. Log in as a user role without the "administer code components" permission (e.g., Content Creator).
  2. Ensure there are code components placed on the canvas by an administrator.
  3. Open the Layers panel.
  4. Observe whether the Edit Code Component option is visible for code components.

    Expected: Edit option should NOT be visible.
  5. If the Edit option is visible, click on it.
  6. Observe the error message shown. Notice that:
    • The message does not include an option to close/dismiss it.
    • Even after any redirection, the user remains stuck on the error page.
  7. Expected behavior:
    • Users without "administer code components" permission should not see the Edit option in the Layers panel.
    • If they somehow access it, the error message should have a clear close button and subsequently redirect the user appropriately.

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

… to be triaged

Created by

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