diff --git a/data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java b/data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java index f8138fb250..936ccf6f25 100644 --- a/data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java +++ b/data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java @@ -103,7 +103,7 @@ public class SecurityEvaluationContextExtension } @Override - public Object getRootObject() { + public SecurityExpressionRoot getRootObject() { Authentication authentication = getAuthentication(); return new SecurityExpressionRoot(authentication) { };