İlker Demirci
İlker Demirci

Reputation: 283

SAP HYBRIS [Y] : How to restrict a customersupportagentrole user from cancelling or returning orders

I created a user and assigned it as customersupportagentrole, This user logs as customersupportagentrole to backoffice I want this user to see the orders but not to manipulate them, For example canceling or returning orders. I am tinkering 'Permission Management - null ( [customersupportagentgroup])' section. Even i disable all selections related with return & order, this user can still cancel an order, or return it. Is there a way to accomplish this task?

Upvotes: 0

Views: 910

Answers (1)

hilalcli
hilalcli

Reputation: 21

If you want to disable cancel/return order buttons, you must change canPerform() method of your order actions/return actions. Canperform() provide that visible or invisible according to your choice. You can check user's role in this method. If user's role equals to 'customersupportagentrole', you can disable this button.

Upvotes: 1

Related Questions