掲示板

show portlet to current logging user

thumbnail
7年前 に Nirav Prajapati によって更新されました。

show portlet to current logging user

Regular Member 投稿: 133 参加年月日: 15/06/25 最新の投稿
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
7年前 に Antoine Comble によって更新されました。

RE: show portlet to current logging user (回答)

Regular Member 投稿: 232 参加年月日: 12/09/07 最新の投稿
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
7年前 に Nirav Prajapati によって更新されました。

RE: show portlet to current logging user

Regular Member 投稿: 133 参加年月日: 15/06/25 最新の投稿
Thanks Dear ,
That's Done..!!!