Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sanya Presich
How to remove left menu in control panel fo Users?
April 3, 2009 7:08 PM
Answer

Sanya Presich

Rank: Junior Member

Posts: 95

Join Date: March 5, 2009

Recent Posts

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.
Cool X
RE: How to remove left menu in control panel fo Users?
April 4, 2009 6:23 AM
Answer

Cool X

Rank: New Member

Posts: 14

Join Date: February 19, 2009

Recent Posts

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.
Sanya Presich
RE: How to remove left menu in control panel fo Users?
April 5, 2009 12:36 AM
Answer

Sanya Presich

Rank: Junior Member

Posts: 95

Join Date: March 5, 2009

Recent Posts

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:

 1
 2
 3<security-role-ref>
 4    <role-name>administrator</role-name>
 5</security-role-ref>
 6
 7<!--
 8<security-role-ref>
 9        <role-name>guest</role-name>
10    </security-role-ref>
11    <security-role-ref>
12        <role-name>power-user</role-name>
13    </security-role-ref>
14    <security-role-ref>
15        <role-name>user</role-name>
16    </security-role-ref>
17-->
Eugen B
RE: How to remove left menu in control panel fo Users?
September 19, 2012 11:18 PM
Answer

Eugen B

Rank: New Member

Posts: 2

Join Date: August 21, 2012

Recent Posts

I tried this:

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

It doesn't work, but it must work.
Matthieu Levesque
RE: How to remove left menu in control panel fo Users?
September 20, 2012 5:36 AM
Answer

Matthieu Levesque

Rank: Junior Member

Posts: 62

Join Date: February 13, 2009

Recent Posts

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 R
RE: How to remove left menu in control panel fo Users?
September 24, 2012 5:15 AM
Answer

Michal R

Rank: Junior Member

Posts: 25

Join Date: May 28, 2012

Recent Posts

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.
Kevin Emamirad
RE: How to remove left menu in control panel fo Users?
January 27, 2014 1:35 PM
Answer

Kevin Emamirad

Rank: New Member

Posts: 10

Join Date: September 4, 2013

Recent Posts

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