Currently, it is not possible to allow the role Members to leave a group without allowing all roles to leave the group.

IMHO, it would make more sense to make that permission granular - i.e. enabling members to leave a group does not automatically enable that permission for all members.

The issue that arises: if the leave group permission is enabled, even the group owner can leave the group.

Even if the owner was not allowed to leave the group, that would suffice for now.

Further, it would be useful to have a modal or some sort of interaction/verification process included when the user clicks on leave group.

For instance, having a form, alert, modal, or any kind of confirmation before performing the action.

Comments

kristiaanvandeneynde’s picture

The "Member" permissions act as the "Authenticated user" permission: it counts for all members. I can see how this may be problematic in some cases such as "Leave group". The current solution would be to create a role which is auto-assigned to all members and give that role the permission, but that's an ugly solution.

About the owner leaving the group: I have not put a safety in place for that yet as some use cases may actually want to give the owner the freedom to leave. Perhaps a GroupType setting "Owner may leave" could be put in place.

I think I designed group actions in a way you can have confirmation pages or extra form elements. So adding in a confirmation for leaving a group should be a possibility.

Soul88’s picture

Status: Active » Closed (outdated)

We thank everyone for their collaboration on this issue, but as the D7 version is no longer supported, we will now close all D7 issues to keep the issue queue a bit tidier. This information won't go anywhere, it just won't show up on the list of open issues anymore.

Please see: https://www.drupal.org/project/group/issues/3163655 and https://www.drupal.org/project/group/issues/3203863#comment-14100281 for more details.