Hello, I was hoping someone could help me out with this. I want to be able to set up my Drupal site to have custom Content Type access permisions based on account/membership types.

For example: Users with account/membership type "A" can only access content type "A". Users with account/membership type "B" can only access content type "B". Users with account/membership type "D" can access both content types "A" and "B". Further more when users log in it takes them directly to the content type assigned to there membership type or at least provides a link to a page displaying all the nodes of there assigned content type.

If anyone could point me in the right direction to set this up I would really appreciate it.
Thanks
Troy

Comments

gareth_w’s picture

Create a taxonomy field of something like "Access Control" and set your different user levels to respond to this.

I have a basic set up for this in place for testing, and it seems to work OK so far...

Gareth

troym559’s picture

I found it. That seems to be just what I am looking for.
Thanks

troym559’s picture

o.k. I installed Taxonomy Access Control Module and created categories "A & B". Then I assigned my user permissions for role type "A" to view category type "A" and create, edit, delete, category type "B" but deny view of category "B". Then I set permissions for role type "B" to view category type "B" and create, edit, delete category type "A" but deny view of category type "A". I then logged in under test accounts that I set up as separate users A and B. But the result was not what I expected. Logged in as role type "A" I could still view both content types "A & B" and could also post content under both category types. Logged in as role type "B" I could still view, create, edit, delete both category types as well. So to make a long story short it didn't seem to work. What am I doing wrong?

Please Help :(

It seems like this would be allot simpler if Drupal had a feature in Access Control that would allow you to specify what user roles could view specific content types. It allows you to control who can edit, delete, edit own content, but not view.

gareth_w’s picture

However, I'm not sure about inheritence. If these are viewable by any other role (e.g. Admin) then maybe that is being used for this?

Granted however, I only have public/private divide (not two sets of private), but it does work.

Drupal has one of the best access control systems I have come across, which is one of the reasons I am moving to it. I'm sure with a little tinkering you will be able to get there

ferdly’s picture

Hi Troy,

I had just composed almost the exact post as this -- the classic ESPN Free Content (anonymous user) and then Premium Content for a fee (high profile columnists). Even if you obscure things someone will figure out node/712 is a way to backdoor it.

So I enjoyed the interchange, but it seemed unresolved.

In a later google listing I found another discussion of a similar issue and Viola! "node_privacy_byrole" This does exactly the trick. This is a good reason to make content types as alternates to Page and Story (or just choose one as being accessible to anonymous and one available to authenticated since nobody seems to have a clear idea of the dfference any longer).

What I heard over and over at my Lullabot Training in Toronto came true! "There's a Module for that!"

http://drupal.org/project/http://drupal.org/project/node_privacy_byrole

Thanks deekayen!

--
Brad

heather’s picture

Usability dead forum post pruning

1) This forum is no longer actively used. Please do not post in this forum, it will help us to keep the usability issues clear. Thank you for your help!
2) This is a feature or support request or other not related to Drupal usability.

Please see the appropriate issue queue http://drupal.org/project/issues or group on http://groups.drupal.org

If this had been a suggestion for usability improvements , I would have added an issue and posted the link here.

------------------------------------------------------------------
"Knowledgeable in Some Matters" http://nearlythere.com/