Skip to main content
Level 2
Oct 16, 2015 2:28 AM UTC
Solved

How to modify Geometrixx-Gov such that loggedin users can see only THEIR drafts

I am trying to modify the GeoMetrixx-Gov site in AEM 6 such that a logged in user can only see THEIR drafts under "/content/geometrixx-gov/en/myforms.html". Currently, if user1 saves a draft and user2 logs in, then user2 can also see the draft saved by user1. I want user1 to only see drafts saved by them. 

Looking at the code in "/etc/designs/geometrixx-gov/fp/draft/template.html" I think the servlet that sends all the drafts back is located here:

"/libs/fd/fp/components/draftsAndSubmissions/draftsAndSubmissions.jsp"

However, looking at the code of that JSP page, I'm not sure what modifications I should be making such that logged in users only see THEIR forms and not everybody else's

 

 

 

 

But in this code I can't locate how to stop users from seeing each others' drafts. 

Where should I be modifying to make this happen?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

Hi,

Current behavior works as you expected.

In the publish instance, it shows only the 'Signed In' Users drafts under 'My Applications' 

Are you looking at something else ? can you give a snapshot or more details on your usecase ? 

3 replies

Level 2
Oct 16, 2015 2:28 AM UTC

Hi, 

I made this screencast video of a fresh AEM 6 install to demonstrate what I'm saying. In this video you'll see that I create two users testuser1 and testuser2. When testuser1 saves a draft and then I login as testuser2, the testuser2 can see the draft saved by testuser1 (vice versa). 

Video: https://www.youtube.com/watch?v=1Mg89iqv_cI&feature=youtu.be

I start my local instance like this: " java -Xmx1024M -jar AEM_6.0_Quickstart.jar "

Please let me know if I'm doing something wrong or if you have any suggestions. 

Thanks

Translate
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

Hi,

Current behavior works as you expected.

In the publish instance, it shows only the 'Signed In' Users drafts under 'My Applications' 

Are you looking at something else ? can you give a snapshot or more details on your usecase ? 

Translate
Level 2
Oct 16, 2015 2:28 AM UTC

Any pointers would be appreciated!

Translate