Reputation: 518
I am developing a liferay portlet using liferay6.1 and SDK for Java.
When user logs in and they click on control panel they can see all kind of options. Is there a way to hide this options?
I am still new but i think that you can hide it from the portal.ext.properties but I am not sure and I have no idea.
Any help will be appreciated! Thanks in advance!
Upvotes: 2
Views: 6581
Reputation: 18787
The configuration can be do by role-permissions of user and power-user. Go to "Control Panel" -> "Roles" -> Looking for User-Role (then Power-User) -> Define Permissions. Disable in area "Permission for Control Panel" the View-Permission for Items that must be hide.
Over.
Upvotes: 1
Reputation: 82
You can show/hide control panel entries by implementing the interface com.liferay.portlet.ControlPanelEntry
. This interface defines a couple of methods (isVisible
/hasAccessPermission
) that determine if a particular user sees/has access to one of the control panel entries.
The association between a portlet and its ControlPanelEntry class is defined in the liferay-portlet.xml
configuration file. To override its value, you must use the ext-plugin.
Take a look at http://www.liferay.com/dtd/liferay-portlet-app_6_1_0.dtd for more information (search for control-panel-entry).
Upvotes: 2
Reputation: 295
Hide and disable access to liferay control panel
This blog will help you
Upvotes: 0