How do I change Group Owner in 2.1.0?

Created on 22 August 2023, about 1 year ago
Updated 31 August 2023, about 1 year ago

Problem/Motivation

Someone deleted the group owner in Drupal 9. Now we've updated to D10 and I cannot see how to change the owner from anonymous to another user. anonymous users can edit the group and its nodes since it's owned by Anonymous, since we updated to 2.1.0. It's not live yet but this is a blocker.

Steps to reproduce

Delete user who is creator of a group in such a way that the group ends up being owned/authored by Anonymous. I don't have the exact steps because this was done before my time on the project.

Now upgrade to groups 2.1.0 and try to view the group entity logged out. Anonymous user can edit the group. Now ensure group author field is showing, and edit the author to another user. That user cannot edit the group but Anonymous still can.

πŸ’¬ Support request
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lukey

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

Comments & Activities

  • Issue created by @lukey
  • Status changed to Fixed about 1 year ago
  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    Go to "Manage form display" on the group type and set the author field.

    Also please don't categorize support requests as bug reports.

  • πŸ‡ΊπŸ‡ΈUnited States lukey

    Thank you. I am not sure this isn't a bug at this time. I tried this after you pointed it out. When I do this, and change the owner from Anonymous to User A, User A cannot edit it in the way Anonymous could. And Anonymous can still edit it. Is this expected behavior?

    The goal is to make it where Anonymous sees no edit button tabs at all, and the new owner sees the edit tabs that Anonymous used to see.

  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    Anonymous isn't supposed to be a group owner at all, actually :) I found a gap in behavior where this is allowed, but can only fix this in v4 because it would be a backwards compatibility break.

    Regarding permissions, because you changed the owner from anonymous to an authenticated user, Group now checks for different group roles. Please look watch these videos to get a better understanding of how permissions work in Group 2/3: https://www.youtube.com/playlist?list=PLWsDPX910IWxhowXYlXDrSG_A5H7_shv5

  • πŸ‡ΊπŸ‡ΈUnited States lukey

    So should this stay open if it's not fixed yet, or is there already an open issue for that?

  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    Well, look at the videos and see if you can fix it by properly assigning permissions. I'm fairly sure you can. As to the anonymous can own a group debacle, it's already on my radar for v4. Keeping this as fixed, as I am fairly certain you will be able to fix this if you set up the permissions correctly.

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

Production build 0.71.5 2024