We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 499a1a1 commit 3ab7cc4Copy full SHA for 3ab7cc4
flow-server/src/main/java/com/vaadin/flow/server/auth/NavigationAccessControl.java
@@ -401,4 +401,14 @@ private static Logger getLogger() {
401
return LoggerFactory.getLogger(NavigationAccessControl.class);
402
}
403
404
+ /**
405
+ * Checks if an access checker of the given type is in use.
406
+ *
407
+ * @return {@code true} if a checker is in use, {@code false} otherwise
408
+ */
409
+ public boolean hasAccessChecker(
410
+ Class<? extends NavigationAccessChecker> type) {
411
+ return checkerList.stream()
412
+ .anyMatch(checker -> type.isAssignableFrom(checker.getClass()));
413
+ }
414
0 commit comments