Skip to content

Commit 61364da

Browse files
committed
Fixed missing reset()
1 parent ff3b0ad commit 61364da

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/atomgraph/linkeddatahub/server/filter/request/AuthorizationFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ public Resource authorize(ContainerRequestContext request, Resource agent, Resou
192192

193193
// only root and containers allow child documents. This needs to be checked before checking ownership
194194
if (Collections.disjoint(parentTypes, Set.of(Default.Root, DH.Container))) return null;
195+
docTypesResult.reset(); // rewind result set to the beginning - it's used again later on
195196

196197
// special case where the agent is the owner of the requested document - automatically grant acl:Read/acl:Append/acl:Write access
197198
if (agent != null && isOwner(accessTo, agent))

0 commit comments

Comments
 (0)