How is this module different to Group Permissions and Group Permissions Template

Created on 5 March 2024, about 1 year ago

Here are a couple of alternative modules that I'm aware of. Reviewing these modules led me to developing Group Permission Set.

Group Permissions provides similar functionality.

  • Permissions are implemented as content entities. That is, you cannot reuse the permissions you defined for another group even if they are the same; every time you want to override the permissions for a group a new content entity is created.
  • For group types with a lot of group roles and content, setting the permissions can be error prone potentially leading to providing read/write/delete access to group content to users that shouldn't have.
  • Due to how the permission calculators are implemented there are some potentially serious performance problems for sites that have a lot of groups with their permissions overridden.

Group Permissions Template builds on top of Group Permissions to allow creating permission templates; you can then choose the template to use for each group when creating/editing it. This brings it closer to the way this module works, but with the following differences.

  • Group Permissions Template still suffers from the performance problems of Group Permissions because templates are copied over to the content entities provided by Group Permissions, leading to one content entity per group.
  • It adds the template reference field to all group types, while Group Permission Set allows you to choose which group types should use permission sets and which should use the permissions defined by group roles at the bundle level.
  • Group Permissions Template will fall back to the permissions defined by the group roles per group type if a template is not defined for the group, while Group Permission Set - for improved performance - requires that a default permission set is defined and that each group references set, even if that's the default. The permissions defined by the group roles at the group type level are not actually used on group types that have permission sets enabled.
  • Group Permissions Template copies over the template every time it is changed to all groups that use it, and that can be problematic for large sites.
💬 Support request
Status

Closed: works as designed

Version

1.0

Component

Documentation

Created by

🇵🇪Peru krystalcode

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

Comments & Activities

Production build 0.71.5 2024