How can I call the hasPermission function with just one parameter?
Currently I have something like this:
@PreAuthorize("hasPermission('someResource', 'READ')")
I want to be able to do this:
@PreAuthorize("hasPermission('canReadSomeResource')")
Is there an easy way to accomplish this? I basically just want to specify the permission that is needed in order to call a method, rather than a resource and a permission.