Any solution to this?

I can’t find what capability is needed to allow the searching.

I have even enabled everything for a role and still cannot search posts or custom post types. Can search categories fine but search posts and custom post types like WooCommerce products result in a redirection to the dashboard.

The only person that can search is super admin.