フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Dinesh Balaji
How to Restrict portlets based on the roles ?
2011/10/24 23:04
答え

Dinesh Balaji

ランク: Junior Member

投稿: 52

参加年月日: 2010/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
saravanan muniraj
RE: How to Restrict portlets based on the roles ?
2011/10/25 0:29
答え

saravanan muniraj

ランク: Junior Member

投稿: 87

参加年月日: 2011/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
Dinesh Balaji
RE: How to Restrict portlets based on the roles ?
2011/10/25 0:32
答え

Dinesh Balaji

ランク: Junior Member

投稿: 52

参加年月日: 2010/10/06

最近の投稿

Hi Muni,

Thanks for your reply , but can you elaborate

Warm Regards,
Dinesh V
saravanan muniraj
RE: How to Restrict portlets based on the roles ?
2011/10/25 0:43
答え

saravanan muniraj

ランク: Junior Member

投稿: 87

参加年月日: 2011/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