legacy-knowledge-base
公開されました Jul. 2, 2025

閲覧権限の無いゲストユーザーからポートレットを隠す

written-by

Liferay Support

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

ポートレットでゲストの表示権限がチェックされていない場合、ゲストはポートレットに次のメッセージを表示します:ポートレットの利用に必要なロールを割り当てられていません

これはポートレットにアクセスできないゲストを処理する方法のひとつですが、このポートレットを非表示にしてこのメッセージを表示しないようにすることも可能です。

解決

これを実現するには、portal-ext.propertiesに以下のプロパティを設定します。

#
# Set this to true if users are shown that they do not have access to a
# portlet. The portlet init parameter "show-portlet-access-denied" will
# override this setting.
#
layout.show.portlet.access.denied=false

デフォルトでは、以下のプロパティが "true "に設定されています。 これを "false "に設定すると、ゲストの表示権限がチェックされていないポートレットは表示されなくなります。ポートレットの利用に必要なロールを割り当てられていません というメッセージも表示されません。
did-this-article-resolve-your-issue

legacy-knowledge-base