add hasRole() convenience method, refs #1297