on 01-23-2018 6:23 AM
Hi All,
I need to hide promotion archive and publish buttons for PromotionSourceRule tupe in editorarea for a particular usergroup.Please let us know ,how this can be done using the backoffice-config.xml file?
Thanks Siva
Hi ,
You can do it with something like below (please don't treat it as an exact snippet - it definitively needs some enhancements):
<context component="editorareaactions" principal="some_user_group" type="PromotionArchive">
<y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<y:group qualifier="common">
<y:action action-id="some.actions.that.needs.removal.id" merge-mode="remove"/>
</y:group>
</y:actions>
</context>
Cheers, Jacek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I have tried the following configuration and logged in with employee from readonlyusergroup,but still he is able to see the options.
<context type="PromotionSourceRule" component="editorareaactions" principal="readonlyusergroup" >
<y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<y:group qualifier="common">
<y:action action-id="de.hybris.platform.ruleenginebackoffice.action.deletesourcerule" property="currentObject" merge-mode="remove"/>
<y:action action-id="de.hybris.platform.ruleenginebackoffice.action.rulearchiveaction" property="currentObject" merge-mode="remove"/>
<y:action action-id="de.hybris.platform.ruleenginebackoffice.action.rulecloneaction" property="currentObject" merge-mode="remove"/>
<y:action action-id="de.hybris.platform.ruleenginebackoffice.action.rulecompileaction" property="currentObject" merge-mode="remove"/>
</y:group>
</y:actions>
</context>
thanks,siva
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.