Allow the `hasRole` method to accept a `Role` argument

Sometimes it can be quite helpful to check if a user has a loaded Role; being able to pass the Role object directly into the `hasRole()` method would be ideal!