Group A is a regular group
User A is NOT a member of Group A
User A can create Group B and set it as a child of Group A

Shouldn't you have to be a member before you're able to do that?

Comments

mstef’s picture

Weird..if you do this, you're added as a member to the parent..

bschilt’s picture

Status: Active » Closed (works as designed)

The only access control measure that subgroups sets in place is the permission of 'edit groups hierarchy'. Any user role that has that permission is allowed to choose any other group as its parent. Whether its the right thing to do or not, the group membership doesn't dictate if a user is able to create subgroups.

massud’s picture

Status: Closed (works as designed) » Active

This should be configurable. For example, some radio buttons can be added to the content type form to determine who can create a subgroup for this group type (e.g. group admins, group members, everyone).

bschilt’s picture

The patch being worked on in this ticket: #976042: Add option to choose which group types can be used to create hierarchies includes access control options for granting group members or admins the privilege of creating subgroups.

UPDATE:
I removed the access control options from the patch listed above. That feature will not be included in the subgroups module. The og_user_roles module is already set up to handle special privileges for group members and group admins.

bschilt’s picture

Status: Active » Fixed

The privilege to create a group hierarchy is controlled by the 'edit groups hierarchy' permission. If this permission is given to non group members (such as site admins) then yes they will be able to create hierarchies below groups they are not members of. The og_user_roles module should be used to help create finer grained access control options.

mstef’s picture

Status: Fixed » Closed (fixed)

You need to be a member/admin of a group to create a group under it.