use of eu.bcvsolutions.idm.core.eav.entity.IdmCodeList in project CzechIdMng by bcvsolutions.
the class FormAttributteByCodeListEvaluator method getPermissions.
@Override
public Set<String> getPermissions(IdmFormAttribute entity, AuthorizationPolicy policy) {
Set<String> permissions = super.getPermissions(entity, policy);
if (entity == null || !securityService.isAuthenticated()) {
return permissions;
}
IdmCodeList codeList = (IdmCodeList) lookupService.lookupEntity(IdmCodeList.class, entity.getFormDefinition().getCode());
if (codeList == null) {
return permissions;
}
// evaluates permissions on owner class
return authorizationManager.getPermissions(codeList);
}
Aggregations