# Asking for access to a private category

**URL:** https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135
**Category:** Feature
**Created:** [14.Октябрь.2014 21:12:59 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135 "2014-10-14T21:12:59Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![bvtbrad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bvtbrad/32/35689_2.png) [@bvtbrad](https://meta.discourse.org/u/bvtbrad)
#### Post date: [14.Октябрь.2014 21:12:59 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/1 "2014-10-14T21:12:59Z")

</div>

I have a private category on my Discourse site. By “private”, I mean only members of certain groups have access to the category. My boss wants the private category displayed to all users so that they can “yearn” (his word) to have access to it. Since the category won’t show up for people who are not in the special groups, I created a link to the category using the Admin Stylesheet and Header functions.

When “everyone” people click on the link to the private category, they see the 404 page that says “The page you requested doesn’t exist or is private.”

I would like “everyone” to be able to request an upgrade to their group membership via an easy-to-find link on that page. Can I add a link, or at least text, guiding them to send a Mod a private message? Or is there a more elegant solution?

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [14.Октябрь.2014 21:30:34 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/2 "2014-10-14T21:30:34Z")

</div>

I don’t think there’s any way to do this now, so I changed it to the “feature” category.

This would be a nice competition to features included with tools like Google Groups, private email lists, etc.:

- Option whether or not to list existence of private group/category publicly
- Option whether or not to allow users to request to be added

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [14.Октябрь.2014 22:02:27 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/3 "2014-10-14T22:02:27Z")

</div>

> [@bvtbrad](#):
>
> When “everyone” people click on the link to the private category, they see the 404 page that says “The page you requested doesn’t exist or is private.”

Out of curiousity, what page do you get if you click  
[https://meta.discourse.org/category/lounge](https://meta.discourse.org/category/lounge)

How does it make you feel, do you yearn or resent?

---

<div class="post-metadata">

### Author: ![bvtbrad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bvtbrad/32/35689_2.png) [@bvtbrad](https://meta.discourse.org/u/bvtbrad)
#### Post date: [14.Октябрь.2014 22:44:37 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/4 "2014-10-14T22:44:37Z")

</div>

[quote=“Mittineague, post:3, topic:21135”]  
Out of curiousity, what page do you get if you click  
[https://meta.discourse.org/category/lounge%5B/quote%5D](https://meta.discourse.org/category/lounge%5B/quote%5D)  
Here’s a screenshot:  
 ![](https://global.discourse-cdn.com/meta/original/3X/6/2/62467c5f40012639c4ac08e4f366d3a41b86bace.PNG)

> [@Mittineague](#):
>
> How does it make you feel, do you yearn or resent?

I would say it depends on the context. In this case, it looks like something’s broken; I move on.

In the case I describe, we just want people to know the other category exists and that they can ask to have access.

---

<div class="post-metadata">

### Author: ![rilla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rilla/32/121738_2.png) [@rilla](https://meta.discourse.org/u/rilla)
#### Post date: [05.Июнь.2016 11:53:49 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/5 "2016-06-05T11:53:49Z")

</div>

I’ve put together a plugin to address this. It’s not pretty but it does the job for the time being. Comments and PRs are super-welcome.

[https://github.com/rilla/discourse-show-private-categories](https://github.com/rilla/discourse-show-private-categories)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [05.Июнь.2016 13:22:27 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/6 "2016-06-05T13:22:27Z")

</div>

I don’t think the lounge should be a “requestable” private category, as it is tied to Trust Level, and its security cannot be modified. To grant someone access to the Lounge, you would need to make them TL3. Besides, the lounge does not have read permissions for anyone else, so either you see it and have full access, or you don’t see it at all. Also, there is no permission to show categories in category view, but not have permission to click through to them - does your plugin create this “view”?

---

<div class="post-metadata">

### Author: ![rilla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rilla/32/121738_2.png) [@rilla](https://meta.discourse.org/u/rilla)
#### Post date: [05.Июнь.2016 20:24:19 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/7 "2016-06-05T20:24:19Z")

</div>

Ok, I understand your concerns perfectly. The plugin is still super green, but also the README can be misleading. In my production instance we don’t use the **Staff** or **Lounge** , or any other category with automatically managed permissions, so the _technique_ (i.e. ugly hack) I’m using to show read-limited categories in the list doesn’t care about discriminating ones from the others.

So, yes: the Staff and Lounge categories will be shown and the plugin will pointlessly allow the user to request access to it. I intend to improve this in the future and I encourage you to open an issue in the repo so I don’t forget 😉

Regarding your other question, the categories are shown but the link is removed, so you can’t click through to the topic list view for that category.

So nope: I’m not providing any new view. Instead of that, the plugin render a box encouraging the user to request access. This button just launches the private message composer pre-filled with some placeholder text.

Hope that makes sense. Thanks for your comments!

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [01.Март.2018 09:51:30 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/8 "2018-03-01T09:51:30Z")

</div>

I would like something like this, but with the ability to customize the text. For some private categories in my system, users can’t request access at all – but I’d like them to be visible.

---

<div class="post-metadata">

### Author: ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)
#### Post date: [09.Февраль.2019 03:58:38 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/9 "2019-02-09T03:58:38Z")

</div>

Did you find a solution for this @alehandrof?

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [09.Февраль.2019 15:52:46 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/10 "2019-02-09T15:52:46Z")

</div>

Nope. We plan to list the groups on our site so that there’s a definitive list somewhere.

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [13.Октябрь.2024 07:49:39 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/11 "2024-10-13T07:49:39Z")

</div>

Я хотел бы иметь возможность ссылаться на свои закрытые категории, чтобы люди видели сообщение о том, как вступить в категорию, а не странное сообщение об ошибке!

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [13.Октябрь.2024 07:55:18 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/12 "2024-10-13T07:55:18Z")

</div>

Посмотрите на

> [@Category Previews](https://meta.discourse.org/t/category-previews/155296?u=moin):
>
> This component will allow you to add “category previews” to your categories page so users are able to see that a category exists without having access to the actual category. The preview looks like a standard category, but can link to a specified page where a user can be educated on how to gain access. I’ve included a simple example below, but there are many different ways this component can be configured. Please be sure to read all of the information included in the Theme Settings. Theme Crea…

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [13.Октябрь.2024 09:36:54 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/13 "2024-10-13T09:36:54Z")

</div>

Этот #Customization > Plugin может сработать, если вы используете self-hosted версию

> [@Discourse Category Lockdown](https://meta.discourse.org/t/discourse-category-lockdown/70649?u=heliosurge):
>
> This plugin allows you to restrict access to topic pages in a category. Topic titles will still show up in topic lists, search, user activity & digest emails. This is a great way to advertise the activity in a “members-only” category, which may charge for access. It IS NOT designed to keep the contents of the category 100% private - if someone is determined enough they will be able to piece together the content from search results. Each category has a couple of new settings in the Security tab…

Измените URL на адрес для отправки сообщения владельцу(ам) группы, запрашивающему(им) доступ.

Или создайте тему с приватными описаниями категорий и ссылкой на владельцев групп для запроса доступа

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [17.Октябрь.2024 16:19:22 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/14 "2024-10-17T16:19:22Z")

</div>

Я изучил оба этих решения, и они не совсем то, что мне нужно.

Мне просто нужно, чтобы на _странице категории по умолчанию_ было написано что-то вроде «У вас нет доступа к этой категории», и, возможно, я мог бы настроить этот текст. Мне не нужно воссоздавать несуществующие страницы категорий или открывать все темы…

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [18.Октябрь.2024 00:07:50 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/15 "2024-10-18T00:07:50Z")

</div>

Возможно, вам стоит разместить пост в #Marketplace, если у вас есть бюджет, чтобы узнать, что можно сделать для выполнения ваших требований.

---

<div class="post-metadata">

### Author: ![Architect](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/architect/32/520575_2.png) [@Architect](https://meta.discourse.org/u/Architect)
#### Post date: [18.Октябрь.2024 12:11:28 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/16 "2024-10-18T12:11:28Z")

</div>

> [@Shauny](#):
>
> просто хочу, чтобы на странице категории по умолчанию было написано что-то вроде «У вас нет доступа к этой категории», и, возможно, дать возможность настроить этот текст

Должна быть возможность изменить этот текст. Не уверен, как именно это сделать, но, полагаю, почти все стандартные текстовые уведомления можно редактировать.

Было бы хорошо иметь что-то более профессиональное, чем страница «Ой! Страница не найдена или является приватной», особенно потому что в текущем виде никто не поймёт, существует ли страница или нет.

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [18.Октябрь.2024 12:26:03 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/17 "2024-10-18T12:26:03Z")

</div>

Текст по умолчанию можно изменить, но я почти уверен, что используется стандартная страница 404, редактирование которой в данном контексте не имеет смысла.

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [18.Октябрь.2024 14:15:35 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/18 "2024-10-18T14:15:35Z")

</div>

> [@Architect](#):
>
> Хорошо бы иметь что-то более профессиональное, чем страница «Упс! Страница не найдена или является частной», особенно потому что в таком случае никто не поймёт, существует ли страница на самом деле или нет.

Вы можете включить настройку сайта `detailed-404`. ~~Кажется, она также применяется к категориям~~ — только что проверил, к сожалению, она не применяется к категориям, только к темам:

 ![Это изображение компьютерного экрана с зелёным текстовым полем, заголовком и сообщением. (Подписано ИИ)](https://global.discourse-cdn.com/meta/original/4X/a/6/f/a6fbc6ac776c8c74d7333eb3276ffb7c4a74b70e.jpeg)

---

<div class="post-metadata">

### Author: ![Architect](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/architect/32/520575_2.png) [@Architect](https://meta.discourse.org/u/Architect)
#### Post date: [19.Октябрь.2024 03:45:04 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/19 "2024-10-19T03:45:04Z")

</div>

> [@Шон Робинсон](#):
>
> Люди могут увидеть сообщение, которое я написал о том, как присоединиться к категории.

Помимо публикации этого на главной странице, заключается ли цель в том, чтобы, если кто-то перейдет по ссылке на тему в ограниченной категории, уведомление сообщало им, как получить к ней доступ? Не уверен, сработает ли для этого существующее подробное предупреждение 404 или как оно работает, поэтому, если это не сработает, вам может потребоваться новая функция.

Вы также можете использовать другую платформу, например Patreon, если это нужно для платного доступа для подписчиков — это работает и может быть интегрировано с Discourse.

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [23.Октябрь.2024 23:16:37 UTC](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135/20 "2024-10-23T23:16:37Z")

</div>

Я просто считаю, что ошибка 404 — это не то, что нужно показывать. Это выглядит так, будто ссылка битая или где-то возникла проблема. Нет никаких указаний на то, что ссылка может сработать, если у пользователя будут другие уровни доступа.

[Следующая страница](https://meta.discourse.org/t/asking-for-access-to-a-private-category/21135.md?page=2)
