Closed (fixed)
Project:
Node Limit
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
1 Aug 2011 at 20:27 UTC
Updated:
22 Feb 2012 at 13:34 UTC
When I attempt to limit by role, I can't limit authenticated users.
Comments
Comment #1
duaelfrAuthenticated users is a virtual role.
In the 6.x branch this was not possible too.
When I will have end basic D7 port I will try to find a way to do this.
Comment #2
NathanM commentedsubscribing
Comment #3
mrtoner commentedSo that I understand the issue before upgrading to D7, the problem is simply that an authenticated user with no additional roles assigned cannot have a limit set? And if I assign an additional role to each authenticated user Node Limits will work?
Comment #4
infines commentedCorrect.
Comment #5
mrtoner commentedThank you!
Comment #6
kimadactyl commentedHmm - I've done this using Rules, and I'm still getting the "Cannot create content" error.
Comment #7
kimadactyl commentedWhoops - never mind, I didn't have role node limits enabled!
So, as a temporary fix:
1. Install Rules module
2. Create a new rule, triggered "after saving a new user account"
3. In Actions add your new role to the user
Works a treat!
Comment #8
liliplanet commentedhmm that's kind of deal breaker as authenticated role is the system role in Drupal.
Is it perhaps possible to 'negate' role selection, so 'if user is not custom role'? which will then default to authenticated ..
Most appreciate any reply and thank you :)
Comment #9
duaelfrThe fact is that "Authenticated user" role is virtual.
When a new user is created, this role is not affected to him in the database. So, this module have to handle anonymous and authenticated users as exceptions and not as the common case.
I will try to work on node_limit today. This would not be so hard to code.
Comment #10
liliplanet commentedThank you so much DuaelFR!
Comment #11
duaelfrOnce again I did not find the time :/
Maybe on today or monday. Keep hope ;)
Comment #12
mrtoner commented@Liliplanet: There are several modules that allow you to automatically set a role for a new user. This current limitation of Node Limit need not be a deal-breaker unless you want it to be.
Resetting priority to major, since the project is not unusable with this workaround. Resetting status to active, since no patch has been submitted.
Comment #13
liliplanet commentedthank you mrtoner for re-opening this issue, yes have been waiting patiently, would love the ability to add nodes as an authenticated + specific defined role :)
Comment #14
duaelfrA patch has been pushed to dev version
http://drupalcode.org/project/node_limit.git/commit/6e8f1a1
Comment #15
infines commentedComment #16
duaelfr