Skip to content

Commit

Permalink
little improvement for delegation limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Apr 12, 2017
1 parent 7c8e482 commit 03cbd1f
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -167,6 +167,18 @@ public static AssignmentEditorDto createDtoAddFromSelectedObject(ObjectType obje
AssignmentEditorDto dto = createDtoFromObject(object, UserDtoStatus.ADD, relation, pageBase);
dto.setDelegationOwner(delegationOwner);
if (SchemaConstants.ORG_DEPUTY.equals(relation)){
OtherPrivilegesLimitationType limitations = new OtherPrivilegesLimitationType();

WorkItemSelectorType approvalWorkItemSelector = new WorkItemSelectorType();
approvalWorkItemSelector.all(Boolean.TRUE);
limitations.setApprovalWorkItems(approvalWorkItemSelector);

WorkItemSelectorType certificationWorkItemSelector = new WorkItemSelectorType();
certificationWorkItemSelector.all(Boolean.TRUE);
limitations.setCertificationWorkItems(certificationWorkItemSelector);

dto.setPrivilegesLimitation(limitations);

dto.setMinimized(false);
} else {
dto.setMinimized(true);
Expand Down

0 comments on commit 03cbd1f

Please sign in to comment.