applied patch for CRM-12705
authorKurund Jalmi <kurund@civicrm.org>
Tue, 28 May 2013 07:28:30 +0000 (12:58 +0530)
committerKurund Jalmi <kurund@civicrm.org>
Tue, 28 May 2013 07:28:30 +0000 (12:58 +0530)
CRM/Utils/System/Drupal6.php

index 9ccc982b0c56d37253c77cffed17e2e4500fb57e..e7a3dfe5e71d1ca2e8c058a9b85e9c4e46dd4b39 100644 (file)
@@ -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'];
     }