掲示板
Skipping Permission for a Role
11年前 に dave ch によって更新されました。
Skipping Permission for a Role
Regular Member 投稿: 161 参加年月日: 12/02/07 最新の投稿
Hi all,
I am using LR 6.1. I want to skip permission for one of my USER (Contributor). The below code is not working, how can i achieve this?
<%for(UserGroupRole organizationRole:organizationRoles){
// System.out.println("organizationRole is"+organizationRole.getRoleId());
Role role=RoleLocalServiceUtil.getRole(organizationRole.getRoleId());
long roleId = role.getRoleId();
long companyId = role.getCompanyId();
int scope = ResourceConstants.SCOPE_COMPANY;
String primKey = String.valueOf(companyId);
role1=role.getName();
String actionIds[] = new String[] {ActionKeys.ADD_ENTRY, ActionKeys.SUBSCRIBE};
if("Organization Contributor".equals(role1)){
ResourcePermissionLocalServiceUtil.deleteResourcePermissions(companyId, DDLRecordSet.class.getName(), scope, primKey);
%>
I am using LR 6.1. I want to skip permission for one of my USER (Contributor). The below code is not working, how can i achieve this?
<%for(UserGroupRole organizationRole:organizationRoles){
// System.out.println("organizationRole is"+organizationRole.getRoleId());
Role role=RoleLocalServiceUtil.getRole(organizationRole.getRoleId());
long roleId = role.getRoleId();
long companyId = role.getCompanyId();
int scope = ResourceConstants.SCOPE_COMPANY;
String primKey = String.valueOf(companyId);
role1=role.getName();
String actionIds[] = new String[] {ActionKeys.ADD_ENTRY, ActionKeys.SUBSCRIBE};
if("Organization Contributor".equals(role1)){
ResourcePermissionLocalServiceUtil.deleteResourcePermissions(companyId, DDLRecordSet.class.getName(), scope, primKey);
%>
11年前 に dave ch によって更新されました。
RE: Skipping Permission for a Role
Regular Member 投稿: 161 参加年月日: 12/02/07 最新の投稿
Any input will be highly appreciated..
Thanks in advance
Dave
Thanks in advance
Dave