Drupal Association members fund grants that make connections all over the world.
I will start from the beginning.
Say I have two content types, and two user roles. I want User role A to be able to view content type X only, and user role B to be able to view content type Y only.
By default authenticated drupal users can view all content types, so I used Content Access module. (FYI: I need content type level access control only).
Now I can check if a user have the right to create a content type by using
if( user_access("create my_type content") )
How do I check the view permission which are set by Content Access Module. Obviously I tried "view my_type content", "view all my_type content", and "view own my_type content", but none worked.
I have also tried
which didn't work.