We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 025c41a commit 31061c0Copy full SHA for 31061c0
api/src/main/java/io/kafbat/ui/model/rbac/AccessContext.java
@@ -69,8 +69,10 @@ public boolean isAccessible(List<Permission> userPermissions) throws AccessDenie
69
if (name == null && permission.getCompiledValuePattern() == null) {
70
return true;
71
}
72
- Preconditions.checkState(permission.getCompiledValuePattern() != null && name != null);
73
- return permission.getCompiledValuePattern().matcher(name).matches();
+ if (permission.getCompiledValuePattern() != null && name != null) {
+ return permission.getCompiledValuePattern().matcher(name).matches();
74
+ }
75
+ return false;
76
})
77
.flatMap(p -> p.getParsedActions().stream())
78
.collect(Collectors.toSet());
0 commit comments