SecurityEvaluationContextExtension Signature
SecurityEvaluationContextExtension.getRootObject() should have a signature
with a return type of SecurityExpressionRoot. See
EvaluationContextExtension javadoc
eed7658ce5/src/main/java/org/springframework/data/spel/spi/EvaluationContextExtension.java (L61-L64)
This enhancement will allow for Spring Data to make certain types of
optimizations.
Fixes gh-7891
This commit is contained in:
parent
5678490c1f
commit
ca5cc13948
|
@ -103,7 +103,7 @@ public class SecurityEvaluationContextExtension
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getRootObject() {
|
public SecurityExpressionRoot getRootObject() {
|
||||||
Authentication authentication = getAuthentication();
|
Authentication authentication = getAuthentication();
|
||||||
return new SecurityExpressionRoot(authentication) {
|
return new SecurityExpressionRoot(authentication) {
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue