Commit a082f0c3 authored by Dries's avatar Dries

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

parent c3d92dc2
......@@ -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();
......
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