I have users with just an "authenticated" role, and users with a "premium" role.
I want that simply "authenticated" users can create a maximum of 30 nodes of a given content type. But I want that "premium" users (a subset of authenticated, of course) can create more, e.g. 60 nodes of the same content type.
But simply creating two rules (30 limit for autenticated users and 60 for premium users) doesn't work. The lower limit (30) takes precedence.
I understand of course it's just a matter of logic; and that i could simply invert the logic (authenticated have limits of 60, and create a "not-premium" role with a limit of 30); but this will complicate a bit the logic of the rest of the application. So I wonder if I am missing something, and maybe there's an easy way "out-of-the-box" to do this with this nice module...
Any help will be, of course, appreciated :-)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | node_limit-aply-first-rule-discarting-the-others-2268383-1.patch | 976 bytes | akalam |
Comments
Comment #1
akalam commentedThis patchs solves the issue. This apply the first rule that the user matchs. Without it, it will apply the more restrictive one.
Comment #2
jordanmagnuson commentedWould be better to have more flexible limit application based on weights... see https://www.drupal.org/node/1665148#comment-9876891
Comment #3
neerajskydiver commentedComment #4
neerajskydiver commentedComment #5
igonzalez commentedWorks for me in 7.x-1.0-alpha5 version.
Good job!
Comment #6
igonzalez commentedComment #7
adriancidNeed rerrol