I'm not sure if this has been addressed anywhere yet, but this is the behavior I'm seeing:
-Using user points to upgrade user to a new role at point threshold.
-When user is upgraded, the role changes correctly...however:
-If that new role has different permissions, which I always will, the user can't access those new functionalities until their user cache is cleared.
Basically, it seems that the module should be smart enough to clear the user cache when the role is upgraded, so the user can access everything in the new role immediately.
(classifying as bug, since the role upgrade doesn't really work properly out of the box)
Comments
Comment #1
jredding commentedreassigning to the proper module and assigning version to better identify. Please take the time to properly classify the bug or feature requests.
Comment #2
Rob_Feature commentedSorry about that...I assumed since userpoints_role was part of the core download that it was part of "basic"...I figured there were additional add-on contrib downloads outside of those included in core.
Comment #3
jredding commenteduserpoints_role is no longer part of the core download and hasn't been during version 3. You originally filed this bug against userpoints version 3 of which there is no userpoints_role counterpart (i.e userpoints_role doesn't currently work with version 3 only version 2).
Did you mean to file against version 3?
Comment #4
Rob_Feature commentedOk, sorry for the confusion....
I'm currently experiencing this bug with 5.x-3.x-dev version of the module. I thought for sure it had come in the userpoints basic download. I really didn't think I downloaded it separately (although, I suppose it's possible I did).
Anyway, I'm using userpoints_role with 5.x-3.x-dev and everything is working fine, except for this caching issue. I'm not sure, now, how to classify the bug. Feel free to do with this what you will. I'm going to have another little module written (or modify userpoints_role) to just clear the cache upon role upgrade to hopefully fix my situation.
Edit: I've attached a screenshot of my current userpoints versions, if that clears up any confusion
Comment #5
jredding commentedIf you are using a rather old version of the development version of userpoints V3 then yes it was included in the downloaded but quite some time ago we took them out of dev as they were NOT upgraded nor tested with version 3. You might have downloaded a version of userpoints_role that was in development for version 3 but never tested.
So.. hhmm, ya you're using dev and your out of sync. Unfortunately the contributed modules haven't been upgraded to version 3 yet nor tested so I don't exactly know why this is happening. I know others are using userpoints_role and this is the first I've heard of this happening.
If you happen to be a coder you could compare the code in the user.module which I *think* grants roles to see what calls are missing. I didn't code userpoints_role nor any other role based modules so I have no idea how to clear the cache.
If you're a coder or the slight bit interested in coding I'd urge you to get involved and help debug this as there currently isn't anyone dedicated to fix these bugs. I am trying to round up some folks this weekend though to do a userpoints contrib module upgrade marathon as the upgrade process is pretty easy (first time for them.. next time they get to help debug Drupal core! )
How are you currently clearing the cache?
Comment #6
Rob_Feature commentedFirst off, let me compliment you on how you stay on top of your modules...you're the most responsive developer I've encountered in the community. Keep it up!
Unfortunately, I'm not a coder....grrr....however, I have asked a developer I know if he'd take a look at this and see if he can clear the cache somehow either in the userpoints_role module itself or through another module. When I hear back on a solution, I'll post it here (or have him post it here) so at least you can see the issue.
Currently, the cache isn't being cleared...which sucks because it's on a live site. Somehow we didn't notice this issue during development/testing, so currently, the site admin is just fixing the caching by doing a single "edit' action on their user account, which then clears the cache....not the best solution :)
I'll update you if/when I know more...
Comment #7
jredding commentedya if you're doing an edit on the user to clear the cache then the answer lies within user.module. I still have no idea what cache is holding this ;) Maybe a session needs to be cleared? I dunno.
Post back if/when you find out.
Comment #8
jredding commentedMoving this back over to userpoints_role. Still awaiting additional info.
Comment #9
berdirSorry for pinging the participants.
Now that Drupal 7 is out, there is no support for Drupal 5 and the
corresponding modules anymore. Therefore, I'm closing all old issues
which are still open.
I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature
is still needed or the bug still exists and open a new issue in that
case.