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

merge-requests/26/head
Dries Buytaert 2010-05-16 10:41:04 +00:00
parent c3d92dc263
commit a082f0c30e
1 changed files with 5 additions and 0 deletions

View File

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