Default, hidden role: Member

Created on 25 September 2023, over 1 year ago

Problem/Motivation

* Say, I have a group with a few roles that have special permissions.
* However, I want all members to have certain privileges, say, view the group.
* Currently, it seems I have to create a new role "member" and then assign the permissions to that role and then ensure that the role "member" is assigned to all members so that they can perform those generic member actions.

Steps to reproduce

Proposed resolution

Consider having a special role "member" that when assigning permissions. Permissions granted to this role apply to all members. For example, all members can join and leave the group and view other members.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

3.2

Component

Code

Created by

🇨🇦Canada jigarius Montréal

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

Comments & Activities

  • Issue created by @jigarius
  • 🇨🇦Canada jigarius Montréal

    As a temporary solution, I have done the following:

    * Set up a new group role: "member"
    * In a hook_group_relationship_presave(), I assign this member role to all membership records.

    The only drawback of this approach so far is that the role "Member" is visible in the UI even though I want it to be hidden, which means I'll have to write some more code to ensure that only the roles that are not this generic "member" role should be visible in the UI.

Production build 0.71.5 2024