Asking for access to a private category

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?

7개의 좋아요

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
3개의 좋아요

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

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

[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
Here’s a screenshot:

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.

1개의 좋아요

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

5개의 좋아요

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”?

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 :wink:

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!

4개의 좋아요

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.

3개의 좋아요

Did you find a solution for this @alehandrof?

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

내 비공개 카테고리에 링크를 걸 수 있으면 좋겠어요. 그러면 사람들이 카테고리 가입 방법을 알려주는 내가 쓴 메시지를 볼 수 있지, 이상한 오류 메시지가 뜨는 것보다는 훨씬 나을 테니까요!

2개의 좋아요

Category Previews 을 확인해 보세요.

3개의 좋아요

셀프 호스팅 환경이라면 이 #customization:plugin이 작동할 수 있습니다.

URL을 메시지 그룹 소유자에게 접근 권한을 요청하기 위한 URL로 변경하세요.

그렇지 않다면, 비공개 카테고리 설명과 소유자에게 접근 권한을 요청하기 위한 링크가 포함된 주제를 사용하세요.

1개의 좋아요

이 두 가지 솔루션을 모두 살펴봤는데, 제가 원하는 것과는 거리가 멉니다.

기본 카테고리 페이지에서 "이 카테고리에 대한 접근 권한이 없습니다"와 같은 메시지를 표시하고, 필요하면 메시지 내용을 커스터마이징할 수 있으면 됩니다. 존재하지 않는 카테고리 페이지를 다시 만들거나 모든 토픽을 열어서 확인해야 하는 건 원치 않거든요…

1개의 좋아요

예산이 있다면 요구 사항을 충족할 수 있는 작업이 가능한지 확인하기 위해 Marketplace 채널에 게시물을 올리는 것도 고려해 보시기 바랍니다.

해당 텍스트를 변경하는 것은 가능할 것 같습니다. 구체적인 방법은 확실하지 않지만, 대부분의 기본 텍스트 알림은 편집할 수 있다고 생각합니다.

“Oops! That page doesn’t exist or is private”와 같은 페이지를 찾을 수 없는 화면보다 더 전문적인 메시지가 있으면 좋겠습니다. 특히 그렇게 되면 사용자가 해당 페이지가 실제로 존재하는지 아닌지 구별할 수 없기 때문입니다.

기본 텍스트는 변경할 수 있지만, 이 경우 기본적으로 404 페이지를 사용하는 것으로 보이므로 이 맥락에서 편집하는 것은 의미가 없을 것 같습니다.

1개의 좋아요

detailed-404 사이트 설정을 활성화할 수 있습니다. 카테고리에도 적용되는 것 같던데 방금 확인해 보니 카테고리에는 적용되지 않고, 불행히도 주제(topic)에만 적용됩니다:

3개의 좋아요

홈페이지에 게시하는 것 외에도, 제한된 카테고리의 주제 링크를 클릭했을 때 그 카테고리에 접근하는 방법에 대한 안내를 보여주는 것이 목표인가요? 기존에 있는 상세한 404 알림이 그 용도로 작동하는지, 아니면 어떻게 작동하는지 확실하지 않아서, 만약 작동하지 않는다면 새로운 기능이 필요할 수 있습니다.

이것이 구독자를 위한 페이월이라면, Patreon과 같은 다른 플랫폼을 사용하는 것도 방법입니다. 해당 플랫폼은 이 목적에 맞게 작동하며 Discourse와 통합할 수 있습니다.

404 오류를 표시하는 것이 적절하지 않다고 생각합니다. 마치 링크가 깨졌거나 어딘가에 문제가 있는 것처럼 보이거든요. 접근 권한이 다르면 링크가 정상적으로 작동할 수 있다는 표시가 전혀 없습니다.