1 user.install | user_update_1019() |
Set the "user_admin_role" attribute to "0" (disabled) if it's missing.
Related topics
File
- core/
modules/ user/ user.install, line 1262 - Install, update and uninstall functions for the user module.
Code
function user_update_1019() {
$config = config('system.core');
if ($config->get('user_admin_role') == NULL) {
$config->set('user_admin_role', 0);
$config->save();
}
}