From: Kurund Jalmi Date: Tue, 28 May 2013 07:28:30 +0000 (+0530) Subject: applied patch for CRM-12705 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a57957f76d1759aa6d1c22f9b58c5aef5f039fdb;p=civicrm-core.git applied patch for CRM-12705 --- diff --git a/CRM/Utils/System/Drupal6.php b/CRM/Utils/System/Drupal6.php index 9ccc982b0c..e7a3dfe5e7 100644 --- a/CRM/Utils/System/Drupal6.php +++ b/CRM/Utils/System/Drupal6.php @@ -93,7 +93,9 @@ class CRM_Utils_System_Drupal6 extends CRM_Utils_System_Base { 'mail' => $params[$mail], 'op' => 'Create new account', ); - if (!variable_get('user_email_verification', TRUE)) { + + $admin = user_access('administer users'); + if (!variable_get('user_email_verification', TRUE) || $admin) { $form_state['values']['pass']['pass1'] = $params['cms_pass']; $form_state['values']['pass']['pass2'] = $params['cms_pass']; }