copy or paste the below code into functions.php file
add_action( 'init', 'user_role_permision');
function user_role_permision() {
$role = get_role('dc_vendor');
//$role->add_cap("import");
// $role->remove_cap("manage_woocommerce");
}
function user_role_permision() {
$role = get_role('dc_vendor');
//$role->add_cap("import");
// $role->remove_cap("manage_woocommerce");
}