Subscribe to group permission is disabled

Created on 18 July 2025, about 1 month ago

Problem/Motivation

See the screenshot

The checkbox for non-members to subscribe to the group is greyed out and checked. I want to have an admin add people to a group and not have to subscribe themselves, but I cant uncheck this.

This code here

// Show a column of disabled but checked checkboxes.
            // Only applies to admins or default roles.
            if ($roles[$rid]->get('is_admin') ||
                in_array($rid_simple, $permission->getDefaultRoles())) {
              $form['permissions'][$permission_name][$rid]['#disabled'] = TRUE;
              $form['permissions'][$permission_name][$rid]['#default_value'] = TRUE;
            }

disables the checkbox if it is a default role. A default role should still be able to be unselected though.

in_array($rid_simple, $permission->getDefaultRoles()) should select it.
$roles[$rid]->get('is_admin') should disable it. (select it too?)

🐛 Bug report
Status

Active

Version

2.0

Component

og.module

Created by

🇺🇸United States loze Los Angeles

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

Comments & Activities

Production build 0.71.5 2024