I'd like to set a default limit to some of my content types, and then modify it on a per user basis.

For example users in member role can create only 2 pages and 5 stories, but I want to set different limit for some users in member role. For example Tom should be able to create 4 pages and 8 stories and Bill should be able to create only one page, but unlimited number of stories.

How to do it?

Comments

jdwfly’s picture

Use a textual comparison in your rule

Import the attached rule as a reference for you to modify. I am using the token module as well, so you might want to install that.

Basically you would have your rule that is the default and you would exclude the users you want to out of it and then create another rule that will be their limit.

thamas’s picture

Thanks for the sample. I will look at it!

deggertsen’s picture

Very helpful. Thank you!
It would be nice to have some documentation with some example rules that could be used.

jdwfly’s picture

Title: Default limit and limit per user » Create documentation on d.o.
Version: 6.x-2.0-alpha1 » 6.x-2.x-dev
Category: support » task

Lets get a page up on the wiki that explains how to create a generic limit and a sub-page that will contain some example rules.

jdwfly’s picture

Status: Active » Closed (won't fix)

Until someone wants to pick this up the README is going to have to do.