留言板
Permissions API on layout Page
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.