cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create restrictions for an action in backoffice

former_member645049
Discoverer

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member437308
Active Participant
0 Likes

Hi,

It really depends what how do you want to restrict, and in what Action. Your business use case would be needed in order to support you.

In general, each backoffice action implements method com.hybris.cockpitng.actions.CockpitAction#canPerform in different way. Some actions has settings to enable/disable them. When you work on action such as Create,Edit there is already Type permission protection. Only allow to create, read, edit you those types that logged user has access to, ...and much more depends on Action type.

As I said there is not one way to "create restriction". It is clearly depends on scenerio.

Cheers Tomek

former_member645049
Discoverer
0 Likes

I want to enable a button in backoffice based on whether the product is staged or online, what is the best way to go about it?

former_member645049
Discoverer
0 Likes

Thanks for your reply

former_member437308
Active Participant
0 Likes

Button is related to one of hybris built-in action?