New group does not allow access to group creator

Created on 3 September 2024, 8 months ago
Updated 17 September 2024, 8 months ago

Problem/Motivation

I am trying to add a new group. I go through the steps and the message shows successful but the new group does not appear on the /admin/group page and I get an "Access denied" error when I go to the new group's page even though I have full admin privileges on the site.

Existing groups continue to work fine.

I have updated the site a couple of times since adding the last group. Group module has not been updated, though.

Steps to reproduce

  1. Go to /admin/group
  2. Click on "+ Add group" button
  3. Enter a group name and description and click on the "Create [group type] and complete your membership"
  4. Enter a URL alias
  5. Click "Save group and membership"

The message shows successful: [Group type] [new group name] has been created and it redirects to my user page rather than the new group's page.

I looked at my previous somewhat similar bug report https://www.drupal.org/project/group/issues/3422061 🐛 Unable to add group blog posts after update Fixed but I don't see any "Group Admin" role in the group type permissions page. Confused.

Proposed resolution

I should be able to see the group I just added and add content (users, nodes) to it.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

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

Comments & Activities

  • Issue created by @leeksoup
  • Additional info. The config for the Group Type looks like this:

    uuid: [....]
    langcode: en
    status: true
    dependencies: {  }
    id: my_class
    label: 'My Class'
    description: 'Class group'
    new_revision: true
    creator_membership: true
    creator_wizard: true
    creator_roles: {  }
  • Status changed to Fixed 8 months ago
  • Solved! I went to /admin/group/types/manage/my_class?destination=/admin/group/types and
    1. unchecked the two options under "Creator settings"
    2. saved
    3. then re-checked them
    4. noticed that no role was checked under "Access settings > Group creator roles" and checked the right one
    5. then saved again.

    I am not certain whether it was #3 or #4 that was the key to solving the issue. This all worked perfectly before, so I don't know when the settings got "lost." Frustrating.

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

Production build 0.71.5 2024