Forums

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

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Michael Adamczyk
Assigning Portal Server permissions to a role
February 23, 2013 8:06 AM
Answer

Michael Adamczyk

Rank: New Member

Posts: 8

Join Date: March 16, 2012

Recent Posts

I'm using EE 6.1 and in the roles documentation they mention the "Control Panel: server" permissions. But I simply can't find these settings. Am I doing something wrong or is this option not included yet...

I need to create a role with permission to only access the "Server Administration" from the server settings in the control panel.

extract: As of Liferay version 6.1, these permissions fall into seven categories: Portal, Site Content, Site Application, Control Panel: Personal, Control Panel: Site, Control Panel: Portal and Control Panel: Server.

Role Documentation



Thanks in advance!
Raja Seth
RE: Assigning Portal Server permissions to a role
February 22, 2013 12:54 AM
Answer

Raja Seth

Rank: Regular Member

Posts: 110

Join Date: August 18, 2011

Recent Posts

Michael Adamczyk:
I'm using EE 6.1 and in the roles documentation they mention the "Control Panel: server" permissions. But I simply can't find these settings. Am I doing something wrong or is this option not included yet...

I need to create a role with permission to only access the "Server Administration" from the server settings in the control panel.

extract: As of Liferay version 6.1, these permissions fall into seven categories: Portal, Site Content, Site Application, Control Panel: Personal, Control Panel: Site, Control Panel: Portal and Control Panel: Server.

Role Documentation



Thanks in advance!


You should have a portal admin role to access server settings in the control panel.
Michael Adamczyk
RE: Assigning Portal Server permissions to a role
February 22, 2013 1:36 AM
Answer

Michael Adamczyk

Rank: New Member

Posts: 8

Join Date: March 16, 2012

Recent Posts

Raja Seth:


You should have a portal admin role to access server settings in the control panel.


Correct, but I don't want to give these users full admin rights. And how would I be able to create a second "admin role" with limited permissions?
Sandeep Nair
RE: Assigning Portal Server permissions to a role
February 22, 2013 2:31 PM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1692

Join Date: November 5, 2008

Recent Posts

Hi Michael,

It's because, the control panel entry class for Server Administration portlet is "OmniadminControlPanelEntry". Check out liferay-portlet.xml for portlet name 137

1<control-panel-entry-class>com.liferay.portlet.admin.OmniadminControlPanelEntry</control-panel-entry-class>


Basically Liferay has filtered the permission listing to avoid showing portlets which is having OmniAdminControlPanelEntry. See (edit_role_permissions_navigation.jspf) for following line

1else if (portlet.getControlPanelEntryCategory().equals(PortletCategoryKeys.SERVER) && (role.getType() == RoleConstants.TYPE_REGULAR) && !Validator.equals(portlet.getControlPanelEntryClass(), OmniadminControlPanelEntry.class.getName())) {
2                    serverPortlets.add(portlet);
3                }


This may because liferay wants only Omni admins to access their administration portlets in server section. What you can do is override the jsp mentioned above using hook and remove the final And condition. This may show up all the portlets in Server section of the control panel in Permissions dropdown.

Regards,
Sandeep
Michael Adamczyk
RE: Assigning Portal Server permissions to a role
February 23, 2013 8:09 AM
Answer

Michael Adamczyk

Rank: New Member

Posts: 8

Join Date: March 16, 2012

Recent Posts

Thanks for the help Sandeep!
Shibu K V
RE: Assigning Portal Server permissions to a role
September 30, 2013 12:46 AM
Answer

Shibu K V

Rank: New Member

Posts: 7

Join Date: September 6, 2013

Recent Posts

Hi, I have tried your answer. It allowed to give "Server Administration" access pemission in control panel.
But it is not reflecting for a user who has that role. "Server" section is hidden for that user.

How to make it visible?