First up we absolutely love Open Atrium!

Your module was the missing link for our company. So when I came across it a couple of days ago we were super happy. However we have run into a little issue (we are using the latest version of Open Atrium v1.0):
- With your module installed and the updating of the "notifications_team_users_custom" when going to a node edit form we have the opportunity as expected to make it private. When clicking this check-box the team members decrease (as expected) to show only the members with the permission access. All good so far. However everyone in the group can see the post when published :(
- Now I then decided to install a module you had recommended "Module Grants" and all of a sudden the private content was indeed private and only the members with this access could see them. However all view, edit links for all nodes (private or not) disappeared, which of course was not ideal.

I did run the "Rebuild Permissions" but to no luck. I hope this gives enough information to help find a solution or patch for my issue as I see this being an invaluable feature for Open Atrium.

Cheers
Gster

Comments

glynster’s picture

Quick update,

I just performed a fresh install of Open Atrium and then installed OG Private Content and the end result was no luck again. I thought it may have been another module or some form of a conflict.

glynster’s picture

Any help or guidance would be greatly appreciated.

mikebell_’s picture

Also seeing this issue on a v1.0 atrium setup.

glynster’s picture

Ah OK so confirmed, did you see anything else? Any idea as to what could be done to fix this?

glynster’s picture

Any thoughts anyone as to help resolve this issue?

zenzhu’s picture

I hit the same situation, is there any one figure this out?

bradleyg’s picture

look in og_private_content.module for

'priority' => 0,

give it a higher priority. setting it to 10 was sufficient for me:

'priority' => 10,

there are 2 places to change

    $grants[] = array(
      'realm' => 'og_private_content',
      'gid' => 1,
      'grant_view' => TRUE,
      'grant_update' => FALSE,
      'grant_delete' => FALSE,
      'priority' => 10,
    );

    // For the example_author array, the GID is equivalent to a UID, which
    // means there are many many groups of just 1 user.
    $grants[] = array(
      'realm' => 'og_private_content_author',
      'gid' => $node->uid,
      'grant_view' => TRUE,
      'grant_update' => TRUE,
      'grant_delete' => TRUE,
      'priority' => 10,
    );
kyousef70’s picture

It works good with me but I get the following warnning when I post private blog:

"warning: Invalid argument supplied for foreach() in /var/www/sites/all/modules/og_private_content/og_private_content.module on line 238."

any suggestion?

ccurwen’s picture

I'm getting the same error...

discipolo’s picture

Status: Needs review » Needs work

guess this still needs to become a patch and the reported new error needs investigating