add hasRole() convenience method, refs #1394