Repair user selectable roles
| Project: | Auto Assign Role |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | cyberswat |
| Status: | closed |
Jump to:
cyberswat
I'm confused (though this could be my inexperience with drupal) - you say the "allow user to choose" behaviour is in AAR by default, But I can't seem to get it to work for me on my development site; I can see the bit on the options page "User Role Assignment" and I have no problem configuring this, but I don't see the "chose a role" screen if I logout and then try to create a new account. I thought I might not have the latest version, but I checked and the dev version I was using (patched with fagos patch above) was dated 11th May so clearly pre-dates this committed change. So I tried grabbing the HEAD version from CVS (this is a new trick for me but tortoise CVS obliged with relative ease) for ARR but after installing this I get
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_autoassignrole_path_access' was given in /public_html/drupal6/includes/menu.inc on line 452and the section on assign via path is missing so I assume that this can't be the right one.
Are there further changes outstanding to provide the functionality I'm after ? Do Riverfr0zens/vanquirius previous patches provide this? I am happy to try and investigate which parts of these patches might add that functionality and attempt create a new patch from these and the current version, but I need to know which version of ARR to be working from before I start this.
are you able to give me some pointers ? or is this something that is coming in your pending changes if I just wait for it ?
Thanks

#1
@iant This is functionality that was in place and is currently borked. It is something I am working on now and will post an update to soon unless someone beats me to it with a patch.
Thanks!
#2
Try with the June 5. Dev version of AutoAssignRole and the dev version of Content Profile. It is now working for me. I'm able to select the roles when a user signs up.
#3
Marking fixed for now ... re-open if necessary
#4
Downloaded it today and unless I'm doing something wrong I think there is a bug in a query or something. I have created two roles - male and female - and allowed users to select one or the other. But the "authenticated user" role and any others I create still show in my radio button list, even though I am only checking the "male" and "female" roles in the Auto-Assign Role config.
Am I correct in assuming that if i do not check a role in the config, that it should not appear to the user in the selection during registration?
#5
I think it's also letting you multi-select radio buttons when you've designated single-select only?
#6
I got this error as well on registration form for anonymous.
#7
All menu callbacks which are defined with that callback _autoassignrole_path_access are pointing to 'file' => 'autoassignrole-path.inc', but this callback is defined in autoassignrole.module file. What's quite weird for me.
In case when Drupal have cached page, not all modules (.module files) has been loaded in this time, only included file.
Probably that's the reason of that error.
#8
I have the same problem here, even if I select only 2 rols from 5 that I have, it will show all 5 in the user registration form.
#9
OK I'm still not getting this to work.
I have CP 6.x.1.x.dev as of today
I have ARR 6.x.1.x - dev as of 19 July
I have ARR "allow user to choose" enabled I've selected my two roles (locum,practice) I've gone for single role selection, radio boxes and required. I have ARR assign from path enabled and "pages with no navigation" with a path of user/register/locum and user/register/practice respectively.
When I got to user/register/locum I get the correct registration profile boxes for that user type when I got to "Create new account" on the home page it takes me to user/register/ where I get a registration page with the profile detail boxes for both role types I do not get the interim page that "allows user to choose" - do I need to change my menu system to point somewhere other than /use/register/ to get this ? or how else do I get ARR to kick in here with the page of user roles and letting the user choose ?
Any other ideas ?
Thanks
iant (test site http://development.grampianlocums.org.uk/)
#10
I believe this has been fixed in the latest versions
#11
Automatically closed -- issue fixed for 2 weeks with no activity.