if (result == null) {
// the role doesn't exist already, so we need to create it
String description = "Generated tenant " + type + " role.";
- result = AuthorizationCommon.createRole(tenantId, AuthorizationCommon.ROLE_TENANT_ADMINISTRATOR, description);
+ result = AuthorizationCommon.createRole(tenantId, AuthorizationCommon.ROLE_TENANT_ADMINISTRATOR, description, true /*immutable*/);
}
return result;
if (result == null) {
// the role doesn't exist already, so we need to create it
String description = "Generated tenant " + type + " role.";
- result = AuthorizationCommon.createRole(tenantId, AuthorizationCommon.ROLE_TENANT_READER, description);
+ result = AuthorizationCommon.createRole(tenantId, AuthorizationCommon.ROLE_TENANT_READER, description, true /*immutable*/);
}
return result;