Finding out type of user with JS

Hello all :slight_smile:
I’m trying to figure out how to find out using Javascript, if the current user is admin, moderator, in a special group or a regular user without any privileges. I found out that I could checkout Discourse.User.current() and it has groups. But Is there a better, more common way to do this?

I too have a mind that races sometimes and what appears in the text shows two thoughts put into one word. It is amazing how the brains does this.

1 Like

Wait what two words is “mendator”?

I am assuming they mean moderator, but a moderator / mentor sounds like an interesting concept! :grinning:

3 Likes

ahaha, yes I meant moderator, sorry for that :slight_smile:

1 Like