Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I want to make an Organic group private,to be seen only from members of this group. All the other will get an "Access denied" or something like that. For the time being,I can see the Group but not its content. I would also want NOT to be able to see the existance of the group,if I am not a member of it. I am working on Drupal 7. How to do that? Thanks

share|improve this question

2 Answers 2

up vote 13 down vote accepted

You need to enable og access control module.

see below: enter image description here

Then navigate to admin/config/group/fields, add an visibility field to your og bundle

enter image description here

Then edit the og bundle content type, there is a new field added to it, make your change for public or private

share|improve this answer
    
weirdly enough, I got the same setup and it isn't working. A user that does not belong to the group can visit it without any problem :/ –  magtak Aug 8 '12 at 12:41
1  
nvm that. It was a conflict with the Content Access module. –  magtak Aug 8 '12 at 13:04
1  
@magtak, how did you solve the content access conflict? –  donquixote Jan 30 '13 at 23:45
    
@gilzero, thanks a lot! there is so much hidden stuff in og.. –  donquixote Jan 30 '13 at 23:46
    
I was able to get the two access modules to play nicely by lowering the priority for the Content Access module. While editing access for a node type (admin/structure/types/manage/TYPE/access), there is an Advanced fieldset near the bottom of the page. Inside that fieldset is the option Give content node grants priority. Setting that below the priority of the OG Access grants will solve the problem (setting it to -1 worked for me). The Devel node access module was helpful in debugging the issue. –  thirdender May 8 at 4:58

Please consider that to make a group truly "private" you have also to remove the "register" permission for non-members otherwise even if the group is "private" non-members that can guess its nid can subscribe (at http://www.example.com/group/node/[nid]/subscribe) and hence view the group's content [OG 7.x-2.2].

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.