Limit node creation based on user roles
Posted by anithegregorian on May 20, 2011 at 8:18am
Im trying to limit the creation of nodes by user roles for eg. Subscriber (can create only 2 nodes) while Contributors (can create upto 5 nodes) by using Rules for D7.
So far its turned out pretty good but only upto displaying a message before saving node content. Instead what I am rolling over my head is to decide what user is currently logged in (particularly his role) and how many nodes he has created, then matching that node count with a fixed number, if the condition evaluates to TRUE then deny any further node creation.
Read more