Fórumok

How to remove left menu in control panel fo Users?

thumbnail
Sanya Presich, módosítva 15 év-val korábban

How to remove left menu in control panel fo Users?

Junior Member Bejegyzések: 95 Csatlakozás dátuma: 2009.03.05. Legújabb bejegyzések
Hi.

I'm trying to forbid users have access to portlets in left menu of control panel (in category Content: web content, calendar etc.).

I've tried to change liferay-portlet.xml, portlet-custom.xml but haven't find any solution.

Users anyway have access to the Guests community Web content, calendar and another menus....

Please help.
thumbnail
Cool X, módosítva 15 év-val korábban

RE: How to remove left menu in control panel fo Users?

New Member Bejegyzések: 14 Csatlakozás dátuma: 2009.02.19. Legújabb bejegyzések
Hi Sanya,

Go to portlet configuration. Select the portlet which you want to hide for user from appearing in conrol panel. Say calendear. Click it.
It says for which users its available. Remover "User" from the list. Thats it.
thumbnail
Sanya Presich, módosítva 15 év-val korábban

RE: How to remove left menu in control panel fo Users?

Junior Member Bejegyzések: 95 Csatlakozás dátuma: 2009.03.05. Legújabb bejegyzések
Not so easy as I thought))

If you remove both User and Power User from the list, you allow for all roles to access certain portlet.

And, if you want to allow it only for admin, you must write Administrator in portlet configuration.

The same is for portlet-custom.xml file:



<security-role-ref>
	<role-name>administrator</role-name>
</security-role-ref>

<!--
<security-role-ref>
		<role-name>guest</role-name>
	</security-role-ref>
	<security-role-ref>
		<role-name>power-user</role-name>
	</security-role-ref>
	<security-role-ref>
		<role-name>user</role-name>
	</security-role-ref>
-->

Eugen B, módosítva 11 év-val korábban

RE: How to remove left menu in control panel fo Users?

New Member Bejegyzések: 2 Csatlakozás dátuma: 2012.08.21. Legújabb bejegyzések
I tried this:

<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>

It doesn't work, but it must work.
thumbnail
Matthieu Levesque, módosítva 11 év-val korábban

RE: How to remove left menu in control panel fo Users?

Junior Member Bejegyzések: 64 Csatlakozás dátuma: 2009.02.13. Legújabb bejegyzések
The only way I was able to do this was to create custom roles selecting the few portlet I want to show to user.

The thing we didn't like with this was there is no way to export your roles from an instance and it can be a bit long to redo them if you have multiple instances.
Michal Rajniak, módosítva 11 év-val korábban

RE: How to remove left menu in control panel fo Users?

Junior Member Bejegyzések: 25 Csatlakozás dátuma: 2012.05.28. Legújabb bejegyzések
This is an old thread, but in Liferay 6.1.1 you shouldn't need to write any code, or edit xmls, to accomplish this.

All you need to do is remove permissions to view those applications from appropriate role(s) in Control Panel.

E.g. permission
Control Panel: Site -> Web Content -> Access in Control Panel
will either show or hide the application in Control Panel left pane.

I managed to hide everything other than My Profile in the left pane in this way.
thumbnail
Kevin Emamirad, módosítva 10 év-val korábban

RE: How to remove left menu in control panel fo Users?

New Member Bejegyzések: 12 Csatlakozás dátuma: 2013.09.04. Legújabb bejegyzések
I want to do the same thing, but there is no place such as:
Control Panel: Site -> Web Content -> Access in Control Panel

Where is "Access in Control" from Web Content?

PS: I use Liferay 6.1.20 EE