Closed (duplicate)
Project:
Auto Assign Role
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2009 at 07:38 UTC
Updated:
19 Mar 2009 at 16:20 UTC
I added in autoassignrole.module the following:
unset($roles[DRUPAL_AUTHENTICATED_RID]); // wnb - fix to remove authenticated user
See below for placement:
case 'register':
if (_autoassignrole_settings('user_active') == 1) {
$form['autoassignrole_user'] = array(
'#type' => 'fieldset',
'#title' => _autoassignrole_settings('user_fieldset_title'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$roles = user_roles(TRUE);
unset($roles[DRUPAL_AUTHENTICATED_RID]); // wnb - fix to remove authenticated user
$user_roles = _autoassignrole_settings('user_roles');
Comments
Comment #1
introfini commentedPlease take a look at this:
http://drupal.org/node/384702#comment-1341068
introfini
Comment #2
a_c_m commented