PHP How to able or disable a plugin or plugin functionality (WooCommerce deposits) based on user role?

I am building a private distributor WooCommerce store with woo private store plugin from Barn2 media. This store is part of a website with a public area where customers can apply for a distributor...