Restrict themes to certain groups?

AI-generated summary

A user, Flower_Child, requested a feature to restrict themes to specific groups, such as offering exclusive themes to donors. HAWK replied that this feature is not currently available.

However, John123 suggested developing a plugin independently, which sam confirmed as possible, albeit tricky. Flower_Child expressed interest in creating such a plugin and requested pointers.

david provided a starting point by referencing the Discourse theme-creator system and highlighting the allow_theme? method in the application controller. He noted that significant development work would be required to implement this feature smoothly.

Additionally, WaitroseCarpark shared a similar experience, having tied theme visibility to Patreon tiers, and provided a link to a related discussion: https://meta.discourse.org/t/show-hide-themes-for-specific-groups/115459.

I’d like a way to restrict themes to particular groups - for example, I’m hoping to give the donators group access to certain exclusive themes and ones that aren’t ready to be released publicly. There any way to do this?

That isn’t currently possible, no.

That would be a great feature, I wonder if there is a way to develop such a plug-in independently. Also if there were a way to label tags that come from different types of users (or at least differentiate between admin and members. What do you think about that?:grinning

It could be done in a plugin, it is rather tricky, but doable.

would definitely be useful. got any pointers on how a plugin could work?

As a starting point, you could have a look at how theme access is overridden for the theme-creator.discourse.org system:

The allow_theme? method is used in Discourse’s application controller here:

As Sam said, what you want to do is possible, but it will require a fair amount of development work to get it working smoothly

I kind of did this and tied it to Patreon tiers