If you want to redirect users to a specific page in wp-admin

So to anyone out there who might have my dilemma of having subscribers who post stuff, but you don't want them to see the wp-admin widget area with info about your site, this is for you. It also of course does indeed support multisite in case anyone is wondering, it gets the sites URL before it redirects. So for instance in my case, when a subscriber goes to the wp-admin page he/she is redirected to http://test.com/wp-admin/edit.php?post_type=document and they never see the widgets. You can change it to redirect to anything and let me know if you need help. Below is the code. Put it in the wp-admin/index.php file write after
/** Load WordPress Bootstrap */
require_once('./admin.php');

if ( !current_user_can('edit_theme_options' ) )
wp_redirect(get_option('siteurl') . '/wp-admin/' . 'edit.php?post_type=document');

but before
/** Load WordPress dashboard API */
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');

If you don't do it in this exact area it either will crash your site or not work, it needs the require_once('./admin.php'); above it so that way it knows what capabilities the user has. Let me know if you need help changing it, be more then glad to help. - Brandon