Hi,
is there some pretty way to check if some specific user (not the one that is logged in) has some specific role?
Here is grails example (generally the same for plain Java but syntax):
def user = User.get(1) //Get user with id 1
if (ifAnyGranted(user,"ROLE_ADMIN")) { //This is the line I need to implement somehow
...
}
Thanks in advance.