Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
ezra-g CreditAttribution: ezra-g commentedI'm looking into this for a bit.
Comment #2
ezra-g CreditAttribution: ezra-g commentedPart 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.
Comment #3
ezra-g CreditAttribution: ezra-g commentedMoving this to the main Drupal Commons issue queue per #1812492: Consider using central issue queue for Commons projects.
Comment #4
ezra-g CreditAttribution: ezra-g commentedThis was blocked by #1811392: No values populated when 'Entity selection mode' is set to 'Organic groups'. Planning to focus more on this this week.
Comment #5
ezra-g CreditAttribution: ezra-g commentedSee also: #1814816: Support "Private or user is member" reference for og_group_ref.
Comment #6
ezra-g CreditAttribution: ezra-g commentedI 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.