# Restrict themes to certain groups?

**URL:** https://meta.discourse.org/t/restrict-themes-to-certain-groups/87868
**Category:** Support
**Created:** [May 19, 2018, 2:22am UTC](https://meta.discourse.org/t/restrict-themes-to-certain-groups/87868 "2018-05-19T02:22:11Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [May 22, 2018, 12:11am UTC](https://meta.discourse.org/t/restrict-themes-to-certain-groups/87868/6 "2018-05-22T00:11:31Z")

</div>

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

> <https://github.com/discourse/discourse-theme-creator/blob/933a72c6f0f2a69647e85aa0dd3035a80d46d8f6/plugin.rb#L20-L28>

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

> <https://github.com/discourse/discourse/blob/661d89f489eb0cfcde4f02d0a0a971536209a62c/app/controllers/application_controller.rb#L322-L351>

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

---

_[View the full topic](https://meta.discourse.org/t/restrict-themes-to-certain-groups/87868)._
