JMSSecurityExtraBundle icon indicating copy to clipboard operation
JMSSecurityExtraBundle copied to clipboard

Constants in hasAnyRoles expression

Open litvinok opened this issue 10 years ago • 3 comments

Constants in hasAnyRoles expression doesn't work.

@Security\PreAuthorize("hasAnyRole(Role::USER,  Role::CUSTOMER)")

litvinok avatar Mar 05 '14 15:03 litvinok

up

litvinok avatar Jun 05 '14 10:06 litvinok

I think it should be implemented with a new ExpressionLanguage component

maxromanovsky avatar Jun 05 '14 14:06 maxromanovsky

if you want to use the ExpressionLanguage component, use the @Security annotation of SensioFrameworkExtraBundle 3.0 instead, as it does exactly that

stof avatar Jun 05 '14 14:06 stof