Requesting a feature to allow non-member roles to 'Create' space content when overriding space permissions. Currently that option is not selectable.

Comments

mpotter’s picture

Yep, just confirming this. Verified that Organic Groups is now allowing non-members to create content no matter what the permissions are set to. Will try to address this in a future OA2 release. Not going to make it into 2.0 though as we are past the code freeze.

mpotter’s picture

Issue summary: View changes

removed 'types' verbiage

mpotter’s picture

Issue summary: View changes
Status: Active » Needs review

I have pushed commit e25478a to oa_core (use the -dev version from github) to help with this. There were two issues here:

1) No matter what mechanism was used to grant create access to groups, Open Atrium would not list those groups because it overrides the default Organic Groups Selection Handler for the group audience entityreference. So this patch adds support for checking create-access to the OA2 group selection widget.

2) Still need a mechanism to override the fact that Organic Groups does not allow non-members to create content. As mentioned here #1796914: Allow non members to create content in group this is non-trivial since it requires doing a query across all groups with the og_permission table which really isn't set up to do this in a performant way. I might add some code in the future that will allow the normal og_permissions for Create XX content to work with non-members, but for now there is another work around:

The workaround is the og_role_override module. It allows you to create a normal drupal role to act as a specific og_role. So you can create an og_role called something like "contributor", set "contributor" in og_permissions so it is allowed to create a specific content type. Then grant the "act as contributor" role to the Drupal user role that the user has (like authenticated).

The PROBLEM with the og_role_override module was that it was overriding the normal node-grant system used in Organic Groups to handle private groups. So all private groups could be exposed. I have added a patch to their issue queue: #2174261: override permissions grant access to private groups - add distinction between public and private to fix this. After applying this patch and using the -dev version of oa_core, I was able to give a role to authenticated users allowing them to create a specific content type within a specific public group.

Marking this as needs review in hopes that somebody will try this and verify that it all works.

dehacker’s picture

Works very well for our use case. oa_core dev and patch to og_role_override allows nonmembers to create content in public spaces. Very nice to be able to communicate with non members of a group.

mpotter’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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