function imce_update_6202 in IMCE 6.2
Fixes misconfigurations where anonymous user is given User-1 profile
File
- ./
imce.install, line 125 - Installs, updates, and uninstalls IMCE.
Code
function imce_update_6202() {
$roles = variable_get('imce_roles_profiles', array());
$rid = DRUPAL_ANONYMOUS_RID;
if (!empty($roles[$rid]['pid']) && $roles[$rid]['pid'] == 1) {
$roles[$rid]['pid'] = '0';
variable_set('imce_roles_profiles', $roles);
}
return array();
}