Legacy Knowledge Base
公開されました Jun. 30, 2025

非 omniadmin ユーザーにはカスタム パネル アプリとポートレットが表示されない

Written By

Jorge García Jiménez

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • 製品メニューにモジュールを配置するカスタム モジュールがあります。
  • モジュールにアクセス許可が割り当てられたサイト ロール S1 があります。
    • サイトとアセットライブラリ管理にアクセス,
    • ビュー。
  • 次の方法でログインした場合:
    • 管理者ユーザーの場合、カテゴリとモジュールが表示されます。
    • 十分な権限を持つ通常のロールを持つ通常のユーザーの場合、カテゴリとモジュールを確認できます。
    • サイト ロール S1 を持つ通常のユーザーの場合、製品メニューの下にカテゴリもモジュールも表示されません。

Environment

  • Liferay DXP 7.4

解決策

  • このカスタム モジュールには、 PanelApp クラスがあります。 この PanelApp 、OSGi コンポーネント プロパティ "panel.category.key"を介して PanelCategory を指します。
  • このプロパティの値は、接頭辞 "site_administration"で始まる必要があります。
  • Liferay コードベースのこの例 では、 "panel.category.key" の値は定数PanelCategoryKeys.SITE_ADMINISTRATION_CONTENTでありこれは "site_administration.MyCustomPortlet"に解決され、プレフィックスの要件を満たしています。
Did this article resolve your issue ?

Legacy Knowledge Base