Skip to content

Commit 1a27efd

Browse files
committed
bugfix: Enable JSR-250 @PermitAll, etc. annotations in Jax-RS module - fixed inverted disabling logic
1 parent 5084e2b commit 1a27efd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroAnnotationFilterFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class ShiroAnnotationFilterFeature implements DynamicFeature {
6262
public void configure(ResourceInfo resourceInfo, FeatureContext context) {
6363
List<Annotation> authzSpecs = new ArrayList<>();
6464
var annotations = SHIRO_ANNOTATIONS;
65-
if (Boolean.TRUE.equals(context.getConfiguration().getProperty(SHIRO_WEB_JAXRS_DISABLE_PRINCIPAL_PARAM))) {
65+
if (!Boolean.TRUE.equals(context.getConfiguration().getProperty(SHIRO_WEB_JAXRS_DISABLE_PRINCIPAL_PARAM))) {
6666
annotations = Stream.concat(SHIRO_ANNOTATIONS.stream(), JSR_250_ANNOTATIONS.stream())
6767
.collect(Collectors.toList());
6868
}

0 commit comments

Comments
 (0)