Function _user_features_get_roles() may return translated roles

Created on 13 October 2021, about 3 years ago
Updated 26 July 2023, over 1 year ago

Description of function _user_features_get_roles() in includes/features.user.inc states:

Generate $rid => $role with role names untranslated.

This may not be true as query in function user_roles() adds tag translatable.
So role names returned by user_roles() might be translated.

Patch below fixes this by using its own query.

🐛 Bug report
Status

Fixed

Version

2.0

Component

User

Created by

🇫🇷France anrikun

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

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