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

how to hide editorareaactions of a type to a particular usergroup in backoffice

Former Member
0 Likes
545

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member625836
Active Contributor
0 Likes

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

Former Member
0 Likes

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

former_member625836
Active Contributor
0 Likes

Hi,

Is the readonlyusergroup of BakcofficeRole type? Configuration may be filtered only by this type of user groups.

Cheers, Jacek

Former Member
0 Likes

Hi Jacek,

It was of type UserGroup,then i modified it to BackofficeRole , now working fine. Thank you so much.

Answers (0)