For public groups, Commons eliminates the distinction between members and non-members. Instead, we have "followers" and "contributors" who have added content to a group.

Commons_Groups should alter the default OG node access permissions so that non-members can post into a group when the group is public.

Comments

ezra-g’s picture

Assigned: Unassigned » ezra-g

I'm looking into this for a bit.

ezra-g’s picture

Part of the problem here is that we're checking user_access() instead of node_access() on content creation links in modules such as commons_posts.

ezra-g’s picture

Project: Commons Groups » Drupal Commons
Component: Code » Groups
Priority: Major » Critical

Moving this to the main Drupal Commons issue queue per #1812492: Consider using central issue queue for Commons projects.

ezra-g’s picture

This was blocked by #1811392: No values populated when 'Entity selection mode' is set to 'Organic groups'. Planning to focus more on this this week.

ezra-g’s picture

ezra-g’s picture

Status: Active » Fixed

I committed the following:

http://drupalcode.org/project/commons_groups.git/commitdiff/2e45af2?hp=0...

- An implementation hook_og_user_access_alter() to change the results of checks for "create [node type]" permission within groups. this now returns true when the group is public and content in the group doesn't default to private, or when the user is a member of the group.
- a 'default_value_function' for the og_group_ref field to enforce this access scheme. The default value function is assigned to instances of the og_group_group_ref in the field instance definition.

Edit: Note that this should lay the API groundwork for supporting public and private groups in Commons.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.