在您无权访问的主题上显示群组加入指南

Continuing the discussion from Guide to Groups:

  1. If you visit a topic in a category you have no permissions for

  2. AND you are a logged on user

  3. AND can gain permission by requesting membership, we should display a helpful message saying:

Hey, you can not see this topic, but if you join the AWESOME group you will be able to see it, [request membership]

just pick the first group if there is a multi match

This does leak out a bit of information about “who can see” a topic which we do not leak out now. However to leak this data you got to create a group that accepts membership requests, so you kind of opted for it.

I really like this feature request, going to slot it for 2.3

16 个赞

Yes I agree this is a very sensible request and we should make it so.

7 个赞

I have a community with way too many categories. It would be nice to be able to hide most of them but still make it easy for anyone to see them.

1 个赞

@maja can you add that to your list?

3 个赞

Where are we at on this @maja?

Sorry for the delay. It’s almost done, will open a PR today.

10 个赞

这是 PR

@j.jaffeux 你能接手吗?

5 个赞

好的,我刚刚合并了它:

恭喜 @maja :tada:

8 个赞

这听起来很棒。是否有可能在 Try 上提供一个使用示例?如果存在一个仅对某些组开放的类别,且该组允许访问请求,它是否只需正常工作即可?

编辑:我想重新阅读一下原始帖子本是个明智之举。:slightly_frowning_face:

正如 OP 中所说,它已按预期工作:

这意味着所访问的主题所属的分类必须设置了一个组,该组的成员资格可申请,并在安全权限中进行了配置。

:bulb: 您需要启用 detailed_404 站点设置,此功能才能生效。

提交记录中有一张截图:

11 个赞

本主题在 2 天后自动关闭。不再允许新回复。