Foren

show portlet to current logging user

thumbnail
Nirav Prajapati, geändert vor 7 Jahren.

show portlet to current logging user

Regular Member Beiträge: 133 Beitrittsdatum: 25.06.15 Neueste Beiträge
Hello friends,

I am working on liferay 6.2 -CE-GA4

I have one site XYZ-learning and it has two portlet PORTLET - A and PORTLET - B.
Their are also two user User-1 and User-2.and both user assign this site

My problem is as following,
When user-1 is logging then shows only PORTLET - A and not showing PORTLET - B and wise-versa.

How can i achieve this.



Thanks in Advance
thumbnail
Antoine Comble, geändert vor 7 Jahren.

RE: show portlet to current logging user (Antwort)

Regular Member Beiträge: 232 Beitrittsdatum: 07.09.12 Neueste Beiträge
Hello,

You can achieve this using Roles ans Permissions.

Create a role roleA and assign it to User-1.
Create a role roleB and assign it to User-2.

Then, go on the page when the 2 portlets are deploying.
Edit the configuration like this :
- Check the box "View" for the role roleA on the portlet for the User-1.
- Check the box "View" for the role roleB on the portlet for the User-2.

After achieving these steps, when you'll log in with User-1, you will see only the portlet on which you checked the "View" permission for roleA.

Regards,

Antoine
thumbnail
Nirav Prajapati, geändert vor 7 Jahren.

RE: show portlet to current logging user

Regular Member Beiträge: 133 Beitrittsdatum: 25.06.15 Neueste Beiträge
Thanks Dear ,
That's Done..!!!