Limit users to creating only one piece of content with cck

Events happening in the community are now at Drupal community events on www.drupal.org.
PepeLefritz's picture

I have a node type called "suggestion" which is created using CCK. Only one type of user has permission to create this content. However, I would like to further limit this by allowing those users to create only one "suggestion". They can edit it after they create it, but they should not be able to create multiple suggestions. Any ideas on how to approach this?

Comments

Simplest Approach

Grayside's picture

Restating the problem as I understand it, you have a Content Type called a "Suggestion". One user role has permission to create it. You want each user to only be able to create one Suggestion node, but to thereafter be able to edit it at will.

The easiest approach I can think of is to not let them create the Suggestion.

Putting it in manual administration terms, get on your user account with Administrate Nodes permission. Create a Suggestion node for each new user, then give them ownership of it by changing the author from your account name to theirs. For that role, give them permission to edit their own suggestion.

They now have permission to edit their one Suggestion node at will, and no ability to create more Suggestions.

Fortune Favor.

node lmiter modules

great

PepeLefritz's picture

Both of your suggestions are exactly what I was looking for. Thanks so much.

Content Construction Kit (CCK)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: