Foren
Permissions API on layout Page
Tom Mahy, geändert vor 12 Jahren.
Permissions API on layout Page
Regular Member Beiträge: 103 Beitrittsdatum: 11.05.11 Neueste Beiträge
This should be easy for anyone thats already done this.
How can i read the permissions on a Layout Page.
I want to know what roles are assigned to this page and what rights they have.
ive tried :
returns empty
cant seem to get roles from the permission list
empty
Any help would be appreciated.
How can i read the permissions on a Layout Page.
I want to know what roles are assigned to this page and what rights they have.
ive tried :
returns empty
ResourcePermissionLocalServiceUtil.getResourcePermissions(
layout.getCompanyId(), Layout.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(layout.getPrimaryKey()));
cant seem to get roles from the permission list
List<permission> permissions = PermissionLocalServiceUtil.getGroupPermissions(layout.getGroupId(),
layout.getCompanyId(),
Layout.class.getName(),
ResourceConstants.SCOPE_COMPANY,
String.valueOf(layout.getPrimaryKey()));</permission>
empty
PermissionLocalServiceUtil.getRolePermissions(roleId, resourceId)
Any help would be appreciated.
Tom Mahy, geändert vor 12 Jahren.
RE: Permissions API on layout Page
Regular Member Beiträge: 103 Beitrittsdatum: 11.05.11 Neueste Beiträge
Searched the whole day. Could not find it.
So im writing my own API.
So im writing my own API.
Surodip Patra, geändert vor 11 Jahren.
RE: Permissions API on layout Page
Junior Member Beiträge: 29 Beitrittsdatum: 25.01.13 Neueste Beiträge
Hi Tom,
Can you get this done? If yes can you help me to set Role Permissions for a Portlet in Liferay?
Thanks & Regards,
Surodip Patra
Can you get this done? If yes can you help me to set Role Permissions for a Portlet in Liferay?
Thanks & Regards,
Surodip Patra