og-access is supposed to identify content with no selected group as public. However, the public checkbox is unchecked and grayed out. Only when I check a group does the Public box become checkable. Then I must keep that group checked or else the public box will revert back to unchecked when I save the content.

Result causes the content to not be viewable to anyone but administrators.

This is what it looked like when editing the content and nothing is checked (should default to public)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

freddyseubert’s picture

Yes this one (or, at least a very related issue) is driving me nuts too.

The problem is, that og only alters the access settings for nodes, that are posted for one or more groups. So if you have a content type (e.g. event), that can be posted "standalone" or for a specific group, og_access only alters the access-settings, if you check a group in the node-creation-form.

I think, what you mean with "(should default to public)" is, that og should also alter the access-record for non-group-nodes, right?

I found this issue here: http://drupal.org/node/347081#comment-1219116 and thought, that comment #5 was the answer to all of my questions, but it didn't help, even if the code looks correct to me.

I'm on OG 6.x-2.1 but I think, that doesn't matter - the behaviour is the same.

Anyone with a solution ot at least a hint for us two?

freddyseubert’s picture

Well, I'll post you my use-case in detail, perhaps this will bring up someone to help me / us with this issue.

I have a content type called "event" - this can be posted to a group but can also exist as a non-group-post. I have Nodeaccess (http://drupal.org/project/nodeaccess) enabled and I need that for sure for a task not related to this one here.

Now, if I disable all options for granting access to nodes (view/edit/delete) in Nodeaccess, there seems to be no chance to show the non-group-events to an authenticated user. If I grant view-access, every event-node (also group-events) is shown to every user.

Do I have to create an additional content type (I want to avoid that)? Or is there any chance to achieve this functionality with a little function that extends og_access in a custom module?!

freddyseubert’s picture

Title: Group Access wont default to public » Access to nodes should default to public
Category: bug » feature

Better title and category (at least I think so ;)

freddyseubert’s picture

Version: 6.x-1.4 » 6.x-2.1