Poll gating?

Hi Discourse community!

I am part of a hosted discourse that we would like to gate the polls based on user roll or tag(ideally a roll obtained from discord).

Is there a plugin, or way to do this?

Thanks for all help,
Iced

1 Like

That’s already built-in into our polls. You can limit who can vote using the builder like:

6 Likes

Perfect!

With the login with discord functionality, can import roles from discord?

Thanks again,
Iced

The Discord login code doesn’t handle the map of roles → Discourse group yet. It’s something we welcome code contributions to handle, as there is an existing pattern in Google auth.

3 Likes

Got it.

Could you reference the existing google auth pattern?
I have some devs that may be interested in contributing.