Right manager Dialog: use getRolesForObjects function and fixed errors