How to disable adding listings by “Private” user role?

mceclip2.png

to make it looks like this?

 

mceclip1.png

 

 

Please add this code you your Child Theme functions.php file (read more about child themes here)

add_filter('vehica/user/canCreateCars', function ($canCreateCars, $user) {
/* @var \Vehica\Model\User\User $user */
if ($user->isPrivateRole()) {
return false;
}

return $canCreateCars;
}, 10, 2);