Actually there is membership on my site and using the plugin https://codecanyon.net/item/woocommerce-membership/8746370 for membership.
Whenever a person choses COD his order goes in processing mode. And then that person is able to access the restricted content. So would you be able to shed any light on this? Thanks.
Also, I have checked if the pages are setup properly with the restrictions. There is something with the order processing or maybe a plugin issue is what I think.