Assignable Roles area not appearing in user edit page
pcorbett - October 2, 2007 - 17:31
| Project: | RoleAssign |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#1
More 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.