Closed (fixed)
Project:
User Points Contributed modules
Version:
5.x-2.0
Component:
Code: userpoints_role
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Sep 2007 at 19:41 UTC
Updated:
28 Dec 2007 at 03:38 UTC
In many cases it would be very useful to be able to setup between values to join or leave each role.
For example:
Points for role power user: Between 1000 and 5000
Points for role moderator: Between 5001 and 10000
...and so on
Instead of:
Points for role power user: 1000
Points for role moderator: 5001
Great module by the way!
Thanks in advance
Comments
Comment #1
jredding commentedThis is how it works.. As you get points you are moved up into a new role. Roles should be cumulative(additive) anyhow and not silos.
If you restructure your roles you'll have the exact same functionality as you state.
Comment #2
palazis commentedThank you for your answer.
My English is not so perfect.
If I understand you well about cumulative(additive) roles...
...in my example a user will have both roles anyway (e.g. moderator + power user) if he has more than 5000 points.
...and one role (e.g. power user) if he has than 5000 points or less.
I just need to re-assign my role permissions using access control.
e.g. a power user can have 5 permissions and a moderator 2 permissions --> meaning that he will have 5 + 2 (extra) = 7 permissions.
Am I right?
Comment #3
jredding commentedyou are correct. Role permissions are cumulative not exclusive. Thus a "Manager" in your sense is both an Authenticated user + Manager.
So just redesign your roles and you're all set!
Comment #4
jredding commented