When we create the administrator role, we should add UID 1 to it.

Relevant code from standard core install profile:


  // Assign user 1 the "administrator" role.
  db_insert('users_roles')
    ->fields(array('uid' => 1, 'rid' => $admin_role->rid))
    ->execute();

Comments

nedjo’s picture

Status: Active » Fixed

Now implemented.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.