user_filters() shows module and permission machine names rather than their human-readable labels, and tries to translate them

Created on 29 March 2013, about 11 years ago
Updated 25 June 2024, about 23 hours ago

user_filters() contains the following code.

    if ($permissions = $function('permission')) {
      asort($permissions);
      foreach ($permissions as $permission => $description) {
        $options[t('@module module', array('@module' => $module))][$permission] = t($permission);
      }

hook_permission() returns $description['label'], which comes already translated; the code should use instead use that value.
Furthermore, instead of the module machine name, the code should use the module name.

🐛 Bug report
Status

Needs review

Version

7.0 ⚰️

Component
User module 

Last updated about 3 hours ago

Created by

🇬🇧United Kingdom joachim

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

Merge Requests

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.69.0 2024