Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
chaitali j patel
not able to hide portlet according to roles
December 18, 2008 1:54 AM
Answer

chaitali j patel

Rank: New Member

Posts: 18

Join Date: November 26, 2008

Recent Posts

Hi,

i have developed a small struts portlet and have given only guest view permission to that portlet but when i login with a user, it still shows that portlet...

this is my portlet-ext.xml code for that portlet


<portlet>
<portlet-name>myEx</portlet-name>
<display-name>myEx</display-name>
<portlet-class>com.liferay.portlet.StrutsPortlet</portlet-class>
<init-param>
<name>view-action</name>
<value>/ext/myEx/view</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
</portlet>





and using liferay enterprise admin also i gave only view permission to guest. no other roles are assigned to this , still it is showing.
what can be the reason?? pls help

Thanks in adv