Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
bo li
How to restrict the permission of adding portlet
July 26, 2012 2:39 PM
Answer

bo li

Rank: Junior Member

Posts: 34

Join Date: November 14, 2011

Recent Posts

In a page, only the admin can any portlet, other user only can add the portles which is developed for them.

Any idea how to do this?

Appreciate for your help.
Hitoshi Ozawa
RE: How to restrict the permission of adding portlet
July 26, 2012 3:40 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

In a page, only the admin can any portlet, other user only can add the portles which is developed for them.


I'm not sure what you mean by this. Do you mean only admin can add portlets to the "Add" menu and users can only select from the "Add" menu?
Isn't this how it is by default?
bo li
RE: How to restrict the permission of adding portlet
July 26, 2012 6:25 PM
Answer

bo li

Rank: Junior Member

Posts: 34

Join Date: November 14, 2011

Recent Posts

Sorry I didn't make it clearly.
I am using liferay 6.1EE.
There is a site page Home which is the default landing page for the user belong to this site
There is one user group customer.
When the user sign in to the portal, will be directed to the Home page directly.
If the user belongs to the group customer, he/she can add portlets CreateServiceRequest and Reports from the add menu, but he/she can not see the built-in portlets of liferay.
If the user is admin, he/she can add portlets CreateServiceRequest and Reports from the add menu, and he/she also can add the built-in portlets of liferay.

How can I make this?

Appreciate for your help.
Hitoshi Ozawa
RE: How to restrict the permission of adding portlet
July 29, 2012 4:54 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Just set roles on liferay's default and your portlets. Following page explains how to set roles on portlet.

http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/security-and-permissio-4