Skip to content

Commit

Permalink
fixed deserialization issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsilaghi committed Jun 24, 2024
1 parent 9849270 commit 32bb5eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>edu.stanford.protege</groupId>
<artifactId>webprotege-authorization-service</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>
<name>webprotege-authorization-service</name>
<description>A service that checks users are authorized to execute operations in WebProtége</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public Collection<Subject> getSubjectsWithAccessToResource(Resource resource, Ac
private Collection<Subject> getSubjectsWithAccessToResource(Resource resource, Optional<ActionId> action) {
String projectId = toProjectId(resource);
Query query = query(where(PROJECT_ID).is(projectId));
action.ifPresent(a -> query.addCriteria(where(ACTION_CLOSURE).in(a.toString())));
action.ifPresent(a -> query.addCriteria(where(ACTION_CLOSURE).in(a.id())));
return mongoTemplate.find(query, RoleAssignment.class)
.stream()
.map(ra -> {
Expand Down

0 comments on commit 32bb5eb

Please sign in to comment.