A way in client javascript to find if current user is member of private group?

How can I check if a user is a member of a private group in JavaScript?

I’m not confident there’s a solution to this, but I’m asking just in case!

I’m trying to hide a JavaScript-built advertising panel from site donors… that list needs to be confidential.

I suppose I could name a public group innocuously, as there’s a low risk that people will figure out the common factor.

For the current user, this will be done soon:

This will be enough for you to

and is the exact use case I had in mind.

8 лайков