Bug in RoleAssignUserBulkForm, roles not shown

Created on 15 June 2023, almost 2 years ago
Updated 15 April 2024, 12 months ago

Problem/Motivation

When visiting admin/people you dont see the add/remove roles actions.
This is due to `if (!in_array($config['rid'], $assignable_roles)) {` the check is "in_array" but $assignable_roles has the rids as keys

Proposed resolution

`$assignable_roles = array_keys(_roleassign_get_assignable_roles());`

Remaining tasks

Fix and add tests in the parent issue so any further issues can be discovered.

🐛 Bug report
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

🇷🇴Romania andras_szilagyi

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

Comments & Activities

Production build 0.71.5 2024