antalk / Tapestry-Spring-Security

A Tapestry 5.3.x spring based security library
11 stars 6 forks source link

ifAllGranted check on ifRole component does not work with different implementations #6

Closed antalk closed 10 years ago

antalk commented 10 years ago

If you do a check with the ifAllGranted parameter on the ifRole component, the test fails if you have any other implementation than SimpleGrantedAuthority. This is because the equals method in SimpleGrantedAuthority not checks on the getAuthority method but on equality of the implementation.