Add support for the Subgroups for Organic groups module.

The way I envisage it working (I may have to revisit this when I properly get into it) is that this module alters the field settings for the og_user_inheritance field that is provided by og_subgroups to add an option to enable support for OG Access Roles.

If enabled this module will altern node access records accordingly, checking parent group role settings by utilising the og_subgroups_parents_load() function and then checking the fields.

Note that this issue is for the Drupal 7 branch and I will switch it over once there is an appropriate version I can select.

Comments

clemens.tolboom’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev

Is sub group still needed? If a subgroup is content for a group are permissions not taken care of?

IIRC there is an issue for OG regarding permissions and subgroups.

vistree’s picture

I really like to see this! Motifation: if you have nested groups og_subgroup can inherit users and permissions through several levels. OG Access Roles currently stops after the first nested group.
e.g.
Main group: private + inherit permissions and users + selected role visibility
First subgroup: public - permissions are OK (still private and visible for parent role visibility)
Subgroup of subgroup: public - content is permitted for selected rols in main group

If I add a user on main group og_subgroup eneables access to subgroup of subgroup for this user.
It would be great if inheritance could be implemented in OG_access_roles