Skip to content

Commit 7eae976

Browse files
committed
Make sure to load document types and owner from then end-user service
1 parent 525aa17 commit 7eae976

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/java/com/atomgraph/linkeddatahub/resource/acl

src/main/java/com/atomgraph/linkeddatahub/resource/acl/Access.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public Response get(@QueryParam(QUERY) Query unused,
124124
ParameterizedSparqlString typePss = getDocumentTypeQuery();
125125
typePss.setParams(thisQsm);
126126

127-
ResultSetRewindable docTypesResult = getEndpointAccessor().select(typePss.asQuery(), List.of(), List.of());
127+
ResultSetRewindable docTypesResult = getEndUserService().getEndpointAccessor().select(typePss.asQuery(), List.of(), List.of());
128128
try
129129
{
130130
final ParameterizedSparqlString authPss = getACLQuery();
@@ -170,7 +170,7 @@ protected boolean isOwner(Resource accessTo, Resource agent)
170170
ParameterizedSparqlString pss = getDocumentOwnerQuery();
171171
pss.setParams(qsm);
172172

173-
ResultSetRewindable ownerResult = getEndpointAccessor().select(pss.asQuery(), List.of(), List.of());
173+
ResultSetRewindable ownerResult = getEndUserService().getEndpointAccessor().select(pss.asQuery(), List.of(), List.of());
174174
try
175175
{
176176
return ownerResult.hasNext() && agent.equals(ownerResult.next().getResource("owner"));

0 commit comments

Comments
 (0)