Question

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!

Was it helpful?

Solution 2

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.

OTHER TIPS

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).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top