Closed (fixed)
Project:
Auto Assign Role
Version:
5.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
18 Mar 2008 at 10:27 UTC
Updated:
14 Jul 2012 at 19:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
lauscherli commentedI have the same problem. The choosing-role-buttons show up at registration, but after registration users only get the permissions of 'authenticated users', but not the rights of the specific role they assigned themselves when registering, and so also the badges for that specific roles don't show up (using advprofile).
Would be really nice... I know you are busy and look for co-maintainers...- but you don't want to have me code... I'll check DROP instead.
I'd be willing to pay a little bounty (50-100 USD) for this, as i only noticed this after i tried to go life (and lots of work i did before depends on this feature). Thank you.
Comment #2
jefftrnr commentedUser Role Assignment Patch.
I think my patch fixes this role assignment issue.
The problem seemed to be with the way it sorts the role array in the form_alter hook. PHP multisort unassigned the key, making the values of the roles incorrect. I've replaced both function calls with asort and arsort. I've also removed the assignment selector from the register page if the user has user_access 'administer access control'. That way , when the admin user adds a user, he/she can simply select the role without having to select the autoassign role as well.
This is my very first durpal patch! (woo hoo!) but, I've test it and the changes are pretty small. I'm a bit unfamiliar with diff output formats, so please let me know if the patch needs adjustments. Hopefully it's done correctly.
Comment #3
ladylolauren commentedThis patch is great...and much needed for my project! Thanks for taking care of this ;)
Comment #4
mariusooms commentedThanks for patching this up...I will test in the coming days...most likely I won't need it anymore :) as I just started to migrate to Drupal 6. Any change this module will see the light of day on that version of Drupal?
Thanks a ton,
Marius
Comment #5
lauscherli commentedcool! i'm just going to try this out. if it works 4 me, contact me 4 the bounty (i promised), or i donate it to the drup-association.
-- It works :) ! Only drawback is that the user-badgets don't react propperly on it. I need to help them manually by resaving the badget-roles.
Comment #6
andypostCumulative patch and 6юч migration http://drupal.org/node/228774#comment-781025 supersedes this one.
Comment #7
giorgoskI could not apply this patch with windows patch.exe
I was actually able to apply this patch though
http://drupal.org/node/228774#comment-791990
and it seems to be working
I don't really know what their difference is
Comment #8
reed.richards commentedPatch at 2# works but you have to do it manually or at least it doesn't work with Cygwin instead it messes up stuff badly.
Comment #9
30equals commentedhi reed.richards
could you possibly quickly explain how to change it manually ?
i've tried to, but i must be doing something wrong... though there isn't that much code to be altered.
thanx!
Comment #10
xxm commentedI've patched it but still the user is not directed to the chosen role. Did you only patch the autoasign.module or anything else?
Comment #11
reed.richards commentedI just opened up the patch file and tried to localize the corresponding lines in the module. It was a bit tricky because some lines were not on the exact number.
I am adding my patched module file below, but I am not taking any responsibility for it. Do a backup before if you overwrite with my file.
Comment #12
missym commentedYour patched mod worked for me.
Comment #13
menoseficaz commented#11 Patch worked for me too - like a gem! Thanks reed!
Comment #14
karlblau commentedGreat!! it worked for me 2!!
Comment #15
richygecko commentedyep #11 worked for me too.
Comment #16
cyberswat commentednew release coming out soon check dev snapshot for working code
Comment #17
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.