Redirect a specific user type to a specific area when logging in

In the wp-login.php file under $redirect_to = admin_url('profile.php'); insert this code: elseif (!$user->has_cap('edit_theme_options'))
$redirect_to = admin_url('edit.php?post_type=document');

make sure to keep it inside the } else your site will crash. For instance because this user isn't allowed to edit the theme options, i.e. a subscriber they are redirected to the wp-admin page(admin_url) where it contains edit.php?post_type=document so the user when they login is redirected to

Enjoy, let me know if you need any help.