Skip to content

Commit

Permalink
apacheGH-1615: LATERAL for jena-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Nov 21, 2022
1 parent 42d4cfb commit e80da23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,15 @@ public void visit(final OpBGP opBGP) throws ReadDeniedException, AuthenticationR
}
}

@Override
public void visit(OpLateral opLateral) {
if (LOG.isDebugEnabled()) {
LOG.debug("Starting visiting OpLateral");
}
final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI);
addOp(OpLateral.create(rewriteOp2(opLateral, rewriter), rewriter.getResult()));
}

/**
* Rewrite left and right
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public SecuredModelTest(final MockSecurityEvaluator securityEvaluator) {

/**
* create an unsecured securedModel.
*
*
* @return
*/
protected Model createModel() {
Expand Down Expand Up @@ -1010,6 +1010,7 @@ public void testGetRDFNode() {
}
}

@SuppressWarnings("deprecation")
@Test
public void testGetReader() {
securedModel.getReader();
Expand Down Expand Up @@ -1095,6 +1096,7 @@ public void testGetSeq_StringNotExisting() throws Exception {
}
}

@SuppressWarnings("deprecation")
@Test
public void testGetWriter() {
securedModel.getWriter();
Expand Down

0 comments on commit e80da23

Please sign in to comment.