Role exception for a settings sub menu

You can see here a list of roles and capabilities, if you want to check if the user has a certain role, you can:

$the_user = wp_get_current_user();//we get the current user
if ( in_array( 'the_name_of_your_role', (array) $the_user->roles ) ) {
    //the user has the rol, add the submenu here
}

you can use current_user_can if you want to check if the user has a specific capability, like this:

if( current_user_can( 'publish_pages' ) ){
    //the user has the capability do something here
}