Create a new permission to limit the user roles that can see the debugger

Created on 8 October 2024, 2 months ago

Problem/Motivation

The module doesn't currently provide a method to limit access to viewing/using the debugger, which means that once the module has been enabled, the debugger is displayed globally to everyone.

Steps to reproduce

Just install the module and activate it. Make sure Drupal TWIG debugging is activated. Confirm the debugger console is showing to admin users. Then, on a separate anonymous window, navigate to a website frontpage as an anonymous user and confirm that user can also see the debugger.

Proposed resolution

These are the suggested changes:

  • Create a new permission to limit the roles that can see/use the debug console.
  • Update the code accordingly to make sure the debugger is not activated/displayed to roles not selected.

Remaining tasks

Apply all code updates.

User interface changes

There are no user interface changes.

API changes

--

Data model changes

--

📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇧🇷Brazil mabho Rio de Janeiro, RJ

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