Hi, we have a requirement to disable multiple features in AEM for certain Usergroups, but in the process, we also disabled the Device-Emulator in the Editor.
Which permissions does a Group/User need to view the emulated device?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Arun,
I've done that right now and it seems a usergroup also needs readpermissions on "/etc/mobile" to see the Emulator-Button
Regards,
Herbert
Views
Replies
Total Likes
Hello,
Try giving read permission on path "/libs/wcm/mobile/components/emulators/"
Regards,
Vishu
Views
Replies
Total Likes
Hi Vishu,
thanks for the fast reply, problem is the read permissions are set, but the button
is still not visible in the editor
Regards,
Herbert
Views
Replies
Total Likes
Hi,
Emulator is displayed based on com.day.cq.wcm.mobile.core.impl.MobileEmulatorProvider factory config,
Views
Replies
Total Likes
If you want to show/hide this button based on user group or privilages use renderconditions.
1. overlay /apps/wcm/core/content/editor/jcr:content/content/items/content/header/items/headerbar/items/emulator in app
2. create granite:rendercondition child node to emulator node (Render Condition — Granite UI 1.0 documentation )
+ granite:rendercondition
- sling:resourceType = "granite/ui/components/coral/foundation/renderconditions/privilege"
- path = "/my/path"
- privileges = "jcr:addChildNodes"
You can either use privilege or feature, If you need to enabled this based on aem groups rather then jcr privileges use sling feature flag.
Thanks
Arun
Views
Replies
Total Likes
Excellent response!
Views
Replies
Total Likes
Hi Arun,
thanks for the response, but it seems it's not working with renderconditions since there seems to be an additional check for the emulator button to be displayed. I've looked into the MobileEmulatorProvider config and our resourcetypes are registered.
With the admin user and "content-authors"-Usergroup the Emulator-Button is visible, but with our custom "author" group it's not.
Thanks in advance,
Herbert
Views
Replies
Total Likes
Hi,
Could you please compare read permission of your custom "group" and "content-authors" ?
Thanks
Arun
Views
Replies
Total Likes
Hi Arun,
I've done that right now and it seems a usergroup also needs readpermissions on "/etc/mobile" to see the Emulator-Button
Regards,
Herbert
Views
Replies
Total Likes
Views
Likes
Replies