Enabling Device-Emulator

herbertkb 30-07-2018

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?

Accepted Solutions (1)

Accepted Solutions (1)

herbertkb 31-07-2018

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

Answers (7)

Answers (7)

herbertkb 31-07-2018

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

Arun_Patidar
MVP
30-07-2018

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.

Sling Feature Flag in AEM

Thanks

Arun

herbertkb 30-07-2018

Hi Vishu,

thanks for the fast reply, problem is the read permissions are set, but the button

1538427_pastedImage_0.png

is still not visible in the editor

Regards,

Herbert