Skip to content
Snippets Groups Projects
Commit a082f0c3 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #704354 by dmitrig01: add user 1 to the administrator role in standard.profile.

parent c3d92dc2
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -415,6 +415,11 @@ function standard_install() {
// Set this as the administrator role.
variable_set('user_admin_role', $admin_role->rid);
// Assign user 1 the "administrator" role.
db_insert('users_roles')
->fields(array('uid' => 1, 'rid' => $admin_role->rid))
->execute();
// Update the menu router information.
menu_rebuild();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment