Skip to content

Commit 33e957c

Browse files
fix: determine if a checkconfig refers to a library check based on whether it has an evaluationUrl.
1 parent 4ef53c5 commit 33e957c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builder-api/src/main/java/org/acme/controller/DecisionResource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ private boolean isUserAuthorizedToAccessScreenerByScreener(String userId, Screen
240240
}
241241

242242
private boolean isLibraryCheck(CheckConfig checkConfig){
243-
Character libraryCheckPrefix = 'L';
244-
return libraryCheckPrefix.equals(checkConfig.getCheckId().charAt(0));
243+
return checkConfig.getEvaluationUrl() != null && !checkConfig.getEvaluationUrl().isBlank();
245244
}
246245
}

0 commit comments

Comments
 (0)