Skip to content

Commit 2a3bd1f

Browse files
committed
Ref #33886: fix null access-control
1 parent 2a60eb2 commit 2a3bd1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/eu/openanalytics/containerproxy/service/AccessControlEvaluationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public boolean checkAccess(Authentication auth, ProxySpec spec, AccessControl ac
7171
return contextBuilder.build();
7272
});
7373

74-
if (accessControl.hasStrictExpressionAccess()) {
74+
if (accessControl != null && accessControl.hasStrictExpressionAccess()) {
7575
// strict expression is always checked
7676
if (!specExpressionResolver.evaluateToBoolean(accessControl.getStrictExpression(), context.get())) {
7777
// not allowed by strict expression

0 commit comments

Comments
 (0)