Closed (fixed)
Project:
Subgroups for Organic groups
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2011 at 15:19 UTC
Updated:
29 Mar 2011 at 13:59 UTC
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
Comment #1
mstef commentedWeird..if you do this, you're added as a member to the parent..
Comment #2
bschilt commentedThe 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.
Comment #3
massud commentedThis 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).
Comment #4
bschilt commentedThe 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.
Comment #5
bschilt commentedThe 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.
Comment #6
mstef commentedYou need to be a member/admin of a group to create a group under it.