Closed (won't fix)
Project:
RoleAssign
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2007 at 17:31 UTC
Updated:
18 Jul 2011 at 23:06 UTC
I've installed and adjusted access controls correctly, but no assignable roles menu appears on the user edit page. I narrowed my issue down to the following line in the roleassign_form_alter() function (~line 148):
// Do nothing if right form isn't shown.
if ($form_id != 'user_register' && ($form_id != 'user_edit' || !isset($form['account'])))
return;
In my case, it fails on this check because I'm on the 'user_edit' form page. Why would I need to also be on a form for 'user_register'??? Should this be changed to allow and OR rather than an AND:
if ($form_id != 'user_register' || ($form_id != 'user_edit' || !isset($form['account'])))
Please advise.
Comments
Comment #1
pcorbett commentedMore information:
I'm running Drupal 5.1, and the user info area where the password and user name are located does not show up for me on that edit user page as well. I double checked my content access setting and everything looks correct.
Comment #2
salvisThe D5 version is not supported anymore.