Defect #3249
openUser see recertification requests for indirect subordinates
0%
Description
One of the users can also see recertification requests for indirect subordinates. he should only see requests from his direct subordinates
Permission:
Role recertification - request items (RecRecertificationItem) RecertificationItemByRecertificationRequestEvaluator
Role recertification - requests (RecRecertificationRequest) RecertificationRequestByApproverEvaluator
Read
Update
Execute
We set Direct guarantees on contracted positions.
On the user tab, he can only see direct subordinates according to permissions
Users (IdmIdentity) SubordinatesEvaluator
View in select box (autocomplete),Read
We have not encountered the same problem with other users.
Updated by David Štekl almost 2 years ago
For one of the indirect subordinate contracts, I tried the same piece of code that calculates the parent:
import eu.bcvsolutions.idm.core.api.dto.filter.IdmIdentityFilter; import eu.bcvsolutions.idm.core.api.dto.IdmIdentityContractDto; org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger("testmanager"); IdmIdentityContractDto contract = identityContractService.get(UUID.fromString("adasdsadsad"));; IdmIdentityFilter subFilter = new IdmIdentityFilter(); subFilter.setManagersFor(contract.getIdentity()); subFilter.setManagersByContract(contract.getId()); def test = identityService.find(subFilter,null).getContent(); log.info("aaaaaaaaaaa" + test );
Only the direct supervisor without this user was output.