Skip to content

Commit

Permalink
work items fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Oct 31, 2017
1 parent 7c047b5 commit b5c82e7
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -207,12 +207,12 @@ private ObjectQuery createQuery(OperationResult result) throws SchemaException {
S_FilterEntryOrEmpty q = QueryBuilder.queryFor(WorkItemType.class, getPrismContext());
if (WorkItemsPageType.ALL.equals(workItemsPageType) && authorizedToSeeAll) {
return q.build();
} else if (WorkItemsPageType.ALL.equals(workItemsPageType) || WorkItemsPageType.ATTORNEY.equals(workItemsPageType)) {
} else if (WorkItemsPageType.CLAIMABLE.equals(workItemsPageType)) {
return QueryUtils.filterForGroups(q, currentUserOid(), getRepositoryService(), result).build();
} else {
// not authorized to see all => sees only allocated to him (not quite what is expected, but sufficient for the time being)
return QueryUtils.filterForAssignees(q, SecurityUtils.getPrincipalUser(),
OtherPrivilegesLimitationType.F_APPROVAL_WORK_ITEMS).build();
} else {
return QueryUtils.filterForGroups(q, currentUserOid(), getRepositoryService(), result).build();
}
}

Expand Down

0 comments on commit b5c82e7

Please sign in to comment.