Problem/Motivation

when calling ddl() the message is not logged if the acting user does not have the ''access devel information' permission.

ddl() calls \Drupal::service('devel.dumper')->dump($message);
Which in turn relies on the permission 'access devel information' to generate the message.

This makes sense for the devel module itself, but here we want to still log the message even if the actiing user cant view the message.

Proposed resolution

Create a function in this module that can log the message without a permission check.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

loze created an issue. See original summary.

loze’s picture

This small change gets it to work, thanks.

loze’s picture

Status: Active » Needs review
vuil’s picture

Status: Needs review » Reviewed & tested by the community
vuil’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.