legacy-knowledge-base
公開されました Sep. 10, 2025

アカウント会員が権限エラーで注文できない

written-by

Viktória Gyömbér

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

問題

ユーザーが注文しようとすると、カートに入れるボタンが無効になり、「注文待ち」ページから注文しようとすると、「必要な権限がありません」というエラーメッセージが表示されます。 ログにも同様のエラーメッセージが記載されています:
ユーザー 45307 は com.liferay.commerce.model.CommerceOrder 115112 の VIEW 権限を持つ必要があります。

Environment

Liferay DXP 7.3
Commerce 3.0.0

解決策

COMMERCE-4129(https://issues.liferay.com/browse/COMMERCE-4129)の導入により、アカウントメンバーは、適切なアカウントロールを持つ場合にのみ、注文を行うことができるようになりました。

Liferay 7.3では、コントロールパネルでアカウントロールの割り当てができないため、以下の手順でロールを割り当ててください:

1. 管理者のいるMinium Siteを開く
2. 本サイトの「アカウント管理」ページを開く
3. ユーザーがメンバーであるアカウントを選択する
4. Members」タブに移動し、User
を表示する 5. Roles」ボタンをクリックし、「Account Role」(例:Buyer Role)を追加します。

以上の手順で、編集されたユーザーは再び注文を行うことができるようになります。

did-this-article-resolve-your-issue

legacy-knowledge-base