on ‎2019 May 17 10:49 AM
I've tried to hide explorer tree nodes using merge-mode="remove" in custom backoffice extension but it is not working. I'm able to see all nodes when logged in with the respective user.
Request clarification before answering.
HI Mukesh, In backoffice we have perspectives for each perspective we may have an explorer tree so explorer tree common for all user who have the access of particular perspective ,so i think you can better to manage with separate perspective and explorer tree thanks, prabhakar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Approach you took is the right one. Please take a closer look at your configuration (especially in context of whole configuration) and find a reason there. You could also try to paste here at least a part of configuration you are referring to and maybe some obvious problem may be find this way by some Expert.
Cheers, Jacek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<context component="explorer-tree" merge-by="principal" principal="supportrole">
<explorer-tree:explorer-tree xmlns:explorer-tree="http://www.hybris.com/cockpitng/config/explorertree" >
<explorer-tree:navigation-node id="hmc_treenode_system" merge-mode ="REMOVE"/>
<explorer-tree:navigation-node id="hmc_treenode_catalog">
<explorer-tree:type-node code="VariantType" id="hmc_typenode_varianttype" merge-mode="REMOVE"/>
<explorer-tree:type-node code="Unit" id="hmc_typenode_unit" merge-mode= "REMOVE"/>
</explorer-tree:navigation-node>
<explorer-tree:navigation-node id="hmc_treenode_order" merge-mode="REMOVE"/>
<explorer-tree:navigation-node id="hmc_treenode_pricesettings" merge-mode= "REMOVE"/>
<explorer-tree:navigation-node id="hmc_treenode_c2l" merge-mode="REMOVE"/>
<explorer-tree:navigation-node id="hmc_treenode_marketing" merge-mode= "REMOVE"/>
<explorer-tree:navigation-node id="hmc.cms2" merge-mode="REMOVE"/>
<explorer-tree:navigation-node id="hmc.cockpit" merge-mode="REMOVE"/>
<explorer-tree:navigation-node id="hmc.group.basecommerce" merge-mode ="REMOVE"/>
<explorer-tree:navigation-node id="hmc.group.basecommerce.deeplink" merge-mode ="REMOVE"/>
</explorer-tree:explorer-tree>
</context>
This is the configuration I've used in my custombackoffice-backoffice-config.xml file. But when I try to log in with the user assigned to this role, I could see all the nodes.
Hi ,
Still looks good 🙂
You can to do following:
make sure that your user is in fact assigned to exactly supportrole (`UID` of BackofficeRole)
make sure that this particular role is chosen in RoleChooser
add some dummy node to this configuration and find out, if it appears (if yes - your configuration is loaded correctly and you may have some problem with i.e. different extension that loads those nodes once again, if not - there is either problem in context definition or roles assignments)
try using Orchestrator to find all configurations for explorer-tree and/or Simulate configuration resolution to exactly find out what, how and why is loaded.
Cheers, Jacek
INSERT_UPDATE BackofficeRole;UID[unique=true];locname[lang=en];backOfficeLoginDisabled;authorities
;supportrole;Backoffice Operate User role;FALSE;supportrole
INSERT_UPDATE PrincipalGroupRelation;source(uid)[unique=true];target(uid)[unique=true]
;operatemodelgroup;supportrole
INSERT_UPDATE Usergroup;uid[unique=true];groups(uid)[mode=append];name
;operatemodelgroup;supportrole;Operate Model Group
This is the impex used. Changes are present in cock[pit-config.xml file in orchaestrator mode too. Still merge-mode="remove" is not working. I could see all the nodes. I'm using hybris 1808. Can this be related to version somehow?
<n:explorer-tree xmlns:n="http://www.hybris.com/cockpitng/config/explorertree" title="explorer">
<n:navigation-node id="cat">
<n:type-node code="CsTicket" id="customersupport_backoffice_explorerTree_tickets"/>
<n:type-node code="Customer" id="customersupport_backoffice_explorerTree_customers"/>
<n:type-node code="CronJob" id="hmc_typenode_cronjob"/>
<n:type-node code="Product" id="hmc_typenode_product"/>
</n:navigation-node>
</n:explorer-tree>
</context>
where merchandiser is a user . but not sure if you want to have to dispaly treenodes based on userRole or UserGroup.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.