Access control with Organic Groups

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
seth97's picture

Hi!
I have a site with organic groups. When a user submits a content type within a group I would like the user to choose between three levels of access for the node:
1) Open: the whole world (anonymous)
2) Restricted: authenticated
3) Private: members of the current group

Point 3) is achieved with the 'Public' check-box provided by OG, but how do I get point 1) and 2)?

I have tried simple_access and nodeaccess, but it doesn't seem to go well with OG. I am running D5.

Any ideas how to get this three levels of access on each node submitted within a group?

Comments

subscribing

monti's picture

subscribing

still no solution....

seth97's picture

I haven't found any solution yet.

I was very hopeful with content_access.

I wanted to use content_access to regulate the access to a node for anonymous users and then have OG regulate access for authenticated users. So far I can't get OG and content_access to work together. I am now trying out this approach: http://groups.drupal.org/node/5392

Seems to be complicated, all I want is a check box for every node: "Stop Anonymous Users from viewing this node".

We're working on this

Working code available

bonobo's picture

We have code in place that delivers this functionality -- you can get it at http://drupal.org/node/660610#comment-2420722

Testers/reviewers: have at it!

Cheers,

Bill

Great!

seth97's picture

Great! I am really exited about this functionality!

Any chance this code could be modified for D5?

Thanks!

D6 and above only

bonobo's picture

This is only for D6, sorry. We'll port this to D7 as well, but this will not be backported (by us, anyways) to D5.

And it's now a contrib module: http://drupal.org/project/og_access_roles

Testers welcome!

Cheers,

Bill

Access Control

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week