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
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Finish editing this message first!
Please register or to comment