掲示板
How to Restrict portlets based on the roles ?
12年前 に Dinesh Balaji によって更新されました。
How to Restrict portlets based on the roles ?
Junior Member 投稿: 51 参加年月日: 10/10/06 最新の投稿
Hi All,
I have two roles created in DB named customer and engineer . I have a condition that the portlets that are visible on the Customer should not appear on to the Engineer page.
TO achieve this, while creating the portlets itself I have given in liferay-portal.xml and portlet.xml as
</role-mapper>
<role-mapper>
<role-name>customer</role-name>
<role-link>customer</role-link>
</role-mapper>
and in portlet.xml as
</security-role-ref>
<security-role-ref>
<role-name>customer</role-name>
</security-role-ref>
But to my surprise I not getting the portlet in the customer page also which i supposed to be available. What could be the reason ?
I saw a similar post but no solution was posted on to date - http://www.liferay.com/community/forums/-/message_boards/message/8338186
Kindly help me on this.
Warm Regards,
Dinesh V
I have two roles created in DB named customer and engineer . I have a condition that the portlets that are visible on the Customer should not appear on to the Engineer page.
TO achieve this, while creating the portlets itself I have given in liferay-portal.xml and portlet.xml as
</role-mapper>
<role-mapper>
<role-name>customer</role-name>
<role-link>customer</role-link>
</role-mapper>
and in portlet.xml as
</security-role-ref>
<security-role-ref>
<role-name>customer</role-name>
</security-role-ref>
But to my surprise I not getting the portlet in the customer page also which i supposed to be available. What could be the reason ?
I saw a similar post but no solution was posted on to date - http://www.liferay.com/community/forums/-/message_boards/message/8338186
Kindly help me on this.
Warm Regards,
Dinesh V
12年前 に Muniraj saravanan によって更新されました。
RE: How to Restrict portlets based on the roles ?
Junior Member 投稿: 95 参加年月日: 11/06/01 最新の投稿
Hi Dinesh,
login as admin , then you can see the there will be configuration , you can set the permission based on role.
regards
Muniraj.Saravanan
login as admin , then you can see the there will be configuration , you can set the permission based on role.
regards
Muniraj.Saravanan
12年前 に Dinesh Balaji によって更新されました。
RE: How to Restrict portlets based on the roles ?
Junior Member 投稿: 51 参加年月日: 10/10/06 最新の投稿
Hi Muni,
Thanks for your reply , but can you elaborate
Warm Regards,
Dinesh V
Thanks for your reply , but can you elaborate
Warm Regards,
Dinesh V
12年前 に Muniraj saravanan によって更新されました。
RE: How to Restrict portlets based on the roles ?
Junior Member 投稿: 95 参加年月日: 11/06/01 最新の投稿
Hi Dinesh,
Every portlet has Configuration option along with min,max and remove option , when user logged as admin, So login as admin select Configuration and set permission
regards
Muniraj.saravanan
Every portlet has Configuration option along with min,max and remove option , when user logged as admin, So login as admin select Configuration and set permission
regards
Muniraj.saravanan