Hello,

I want to know How to check if the current user has read only permission on a content type to hide a create content type link for that user?

Thanks,
John

Comments

yrocq’s picture

This should work :

// Test if current user can post a story in the group with nid 5

if (og_read_only_is_allowed_type('story', 5)) 
{
 // Do something...
}