Sorry if this has already been answered, but I couldn't find anything that quite matched my problem.

Is there any way to restrict content so that only those members of the same roll can view it? I looked at node privacy byrole, but I don't want the user to be able to decide who can see the post. I want to make sure that anything posted by, say, a member with the role "trusted" is not visible to anyone with the role "public".

Thanks for any help!

Comments

celticess’s picture

http://drupal.org/project/node_privacy_byrole

After installing it you need to possibly add more roles than the two default. Anyways you should now see roles listing after enabling the module under:

Admin > content > configure > content types > [pick the applicable category to edit]

In there you will find you can set defaults. Otherwise when adding new content it's avilable on the page when adding.

fuzzygroove’s picture

Thanks for the response -

I don't want to manually set the view permissions on a content-type basis, but rather I would like to set it up so that if a user of the role "trusted" posts a story it is only visible to other users of the role "trusted". Similarly, if someone of the role "foo" posts a story, I want only those with the role "foo" to be able to see it.

Is this possible with node privacy byrole?

celticess’s picture

But I might be wrong. Right now what you do is per post. If the person has permission to post a type of content. On the page they fill out with content it asks who can view it, who can edit it, and who can change it's permissions.(or maybe that is just a side effect of my having by role and/or some other modules installed) Then the person choses who can see what they post. unfortunately the content defaults are global. Though the poster can over ride them if they have enough authority. I know I wish I could set a whole book to be allowing annon posters but other books to only allow people to read but not add. So far though the content settings are global same with permissions. Though you can add new roles. I'm fairly new to drupal so maybe someone with more experience has another idea.