legacy-knowledge-base
公開されました Jun. 30, 2025

Wikiノードに設定されたパーミッションは、Wikiページには継承されません。

written-by

Tímea Bihari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  1. 次のプロパティを有効にします。 permissions.propagation.enabled=true
  2. A Wikiノードを開き、そのパーミッションを変更し保存する。
  3. Wikiノードの下に新しいWikiページを追加する。
  4. Wikiページのアクセス権を開く

実際の結果です: Wikiページのパーミッションは、Wikiノードのパーミッションと全く異なります。
期待される結果 WikiページはWikiノードからパーミッションを継承する必要があります。

Environment

  • Liferay DXP 7.2+

解決策

  • permissions.propagation.enabled」プロパティが「true」に設定されている場合、Wikiページ作成時にパーミッションは伝わりませんが、親のパーミッション(Wikiノードのパーミッション)を変更すると、すべての子(そのノード下のWikiページ)のパーミッションが更新されます。
  • これは、物件の説明で確認することができます:
# Set the following to true to enable propagation of permissions between
# models.
#
# For example, when setting the permissions on a specific Wiki node, if you
# assign a role a permission (e.g. DELETE), then the assignment of that
# permission is also propagated to all Wiki pages that belong to that Wiki
# node.
  • そのため、伝播はノードのパーミッションを設定するときにのみ行われ、その後に作成されるWikiページのパーミッションには影響しません。

現在利用可能な設定オプションの中には、回避策として使用できるものもあります:

  1. Wikiのデフォルトの "Viewable by "パーミッションを設定する: 資産に対するデフォルトの "閲覧権限 "を設定する機能
  2. ロールやパーミッションを使って、アクセスできる人を制御します:
    Wiki パーミッションの詳細
    ロールとパーミッションの FAQ
did-this-article-resolve-your-issue

legacy-knowledge-base