アクセス権のないトピックでグループオプトインのガイダンスを表示する

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

OK、マージしました:

おめでとう @maja :tada:

「いいね!」 8

素晴らしいですね。例えば、Try上でその使用例を示すことは可能でしょうか?特定のグループに限定されたカテゴリがあり、そのグループがアクセスリクエストを許可している場合、それは自動的に機能するのでしょうか?

編集:OPを再読すればよかったと気づきました。:slightly_frowning_face:

OP の説明通り動作します:

つまり、訪問したトピックのカテゴリには、セキュリティ権限で申請可能なメンバーシップが設定されたグループが含まれている必要があります。

:bulb: これを機能させるには、detailed_404 サイト設定を有効にする必要があります。

コミットにスクリーンショットがあります:

「いいね!」 11

このトピックは 2 日後に自動的に閉鎖されました。新しい返信は受け付けられません。