Check if user is a logged in member then check if boolean = true on click

Thanks Ajit.

I tried your code - its partially working. When the page visitor isn’t logged in, the login lightbox is triggering correctly. When the page visitor is a logged in and approved member, I’m able to see the reviews section, which is also correct. However, if the page visitor is a logged in member but not approved yet, I’m still able to see the reviews section, which is not correct - I should get the Account Unverified lightbox.

I’d appreciate your help to see if there’s anything else we could try?

Here’s the code as it is at the moment: