Commit 0e38d940 authored by David_Rothstein's avatar David_Rothstein

Drupal 7.44 (SA-CORE-2016-002) by alfaguru, benjy, nagba, David_Rothstein,...

Drupal 7.44 (SA-CORE-2016-002) by alfaguru, benjy, nagba, David_Rothstein, larowlan, stefan.r, vlad.k, pwolanin
parent 7b2dc793
Drupal 7.44, 2016-06-15
-----------------------
- Fixed security issues (privilege escalation). See SA-CORE-2016-002.
Drupal 7.43, 2016-02-24
-----------------------
- Fixed security issues (multiple vulnerabilities). See SA-CORE-2016-001.
......
......@@ -8,7 +8,7 @@
/**
* The current system version.
*/
define('VERSION', '7.43');
define('VERSION', '7.44');
/**
* Core API compatibility.
......
......@@ -1162,7 +1162,7 @@ function user_account_form(&$form, &$form_state) {
$form['account']['roles'] = array(
'#type' => 'checkboxes',
'#title' => t('Roles'),
'#default_value' => (!$register && isset($account->roles) ? array_keys($account->roles) : array()),
'#default_value' => (!$register && !empty($account->roles) ? array_keys(array_filter($account->roles)) : array()),
'#options' => $roles,
'#access' => $roles && user_access('administer permissions'),
DRUPAL_AUTHENTICATED_RID => $checkbox_authenticated,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment