Enabling Device-Emulator | Community
Skip to main content
Level 2
Jul 30, 2018 12:39 PM UTC
Solved

Enabling Device-Emulator

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
herbertkbAccepted solution
Level 2
Jul 31, 2018 7:56 AM UTC

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

8 replies

herbertkbAuthorAccepted solution
Level 2
Jul 31, 2018 7:56 AM UTC

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

Translate
arunpatidar
New Participant
Jul 31, 2018 7:36 AM UTC

Hi,

Could you please compare read permission of your custom "group" and "content-authors" ?

Thanks

Arun

Translate
Arun Patidar
herbertkbAuthor
Level 2
Jul 31, 2018 7:01 AM UTC

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

Translate
smacdonald2008
Level 10
Jul 30, 2018 2:11 PM UTC

Excellent response!

Translate
arunpatidar
New Participant
Jul 30, 2018 1:21 PM UTC

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

Translate
Arun Patidar
arunpatidar
New Participant
Jul 30, 2018 1:15 PM UTC

Hi,

Emulator is displayed based on com.day.cq.wcm.mobile.core.impl.MobileEmulatorProvider factory config,

Translate
Arun Patidar
herbertkbAuthor
Level 2
Jul 30, 2018 1:09 PM UTC

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

Translate
Employee
Jul 30, 2018 12:58 PM UTC

Hello,

Try giving read permission on path "/libs/wcm/mobile/components/emulators/"

Regards,

Vishu

Translate