it would be very cool, if you could add a field, wethere a certain field is visible for all organic group members, in which the user is.

i would also like to code this stuff

CommentFileSizeAuthor
#2 cck_field_privacy_og.zip717 bytesobsidiandesign

Comments

obsidiandesign’s picture

Assigned: Unassigned » obsidiandesign
Priority: Normal » Minor

While it's not something I've considered, I guess this would be a logical extension of what CCK Field Privacy does. Once I get to the privacy by role idea (#266258: Mirroring Drupal and Content Fetch from RSS/XML/JSON), I'll work on this as well.

Bryan

obsidiandesign’s picture

Status: Active » Needs review
StatusFileSize
new717 bytes

Thanks to Andy (chaps2) who has put together some code to handle several issues, including this one. I'd appreciate it if a few people could test the add-on module to verify it works as expected before I add it to the CVS.

Thanks,
Bryan O'Shea
Obsidian Design

dingbats’s picture

A little slicker:

function cck_field_privacy_og_cck_field_privacy_access($requester, $requestee) {
  return (bool)array_intersect_key($requester->og_groups, $requestee->og_groups);
}

I don't think the overhead of a whole module just for this one hook implementation is worth it. Can there be a better way to integrate field privacy with OG?