spring-native icon indicating copy to clipboard operation
spring-native copied to clipboard

Spring security method missing hint

Open benoit-laplante opened this issue 4 years ago • 2 comments

MethodSecurityExpressionRoot typehint DELCLARED_METHODS and DECLARED_FIELDS are missing to expose properties fieldObject and returnObject in spel expression like

@PostFilter("hasPermission(filterObject.id, 'POJO', read)") List<POJO> listAll();

benoit-laplante avatar Mar 02 '22 22:03 benoit-laplante

@eleftherias Do you think those should be configured out of the box?

sdeleuze avatar Mar 03 '22 09:03 sdeleuze

@sdeleuze Yes, I do think they should be configured out of the box. I can update the GlobalMethodSecurityHints and add an example of this issue to one of the samples.

eleftherias avatar Mar 03 '22 12:03 eleftherias