DISABLE PORTLET VIEW TO CERTAIN USERS
1) Log into Liferay Portal as test@liferay.com/test.
2) Go to menu Add/More...

3) Type "Unit" in Search Box to find "Unit Converter" portlet to main page.

4) The portlet is added to the main page.
Locate the spanner icon.

5) Click the spanner icon and choose Configuration.

6) Untick the view for Guest.
Save.

7) Logout from Liferay Portal.
You should get the following.

8) Create file as ...ROOT/WEB-INF/classes/portal-ext.properties
Add text: layout.show.portlet.access.denied=false

9) Restart Liferay.
You shouldn't get the Alert message anymore.

10) The string in step 8 can actually be found in the original portal.properties at line no. 3708

No comments:
Post a Comment