spring security : Why can't we access Hibernate entitiy parameters in @PreAuthorize?

前端 未结 4 1984
傲寒
傲寒 2021-01-19 19:34

I have the following interface method on which I am applying @PreAuthorize :

@PreAuthorize(\"doSomething(#user.id)\")
void something(User user,          


        
4条回答
  •  逝去的感伤
    2021-01-19 19:59

    You can check LazyParamAwareEvaluationContext,inside loadArgsAsVariables() method, version 3.1.0.

    The same key for different Entity, because of implementing interface.

提交回复
热议问题