Permalink
Browse files

https://issues.jboss.org/browse/PLFED-321

  • Loading branch information...
1 parent c08cee3 commit d33a2b5f5877bd0eaa5b559f783a87e4928e956d @pedroigor pedroigor committed May 23, 2012
@@ -273,7 +273,7 @@ public Document getResponse(SAML2HandlerRequest request) throws ConfigurationExc
assertion.addStatement(authnStatement);
}
- if (handlerConfig.getParameter(DISABLE_SENDING_ROLES) == null) {
+ if (handlerConfig.getParameter(DISABLE_SENDING_ROLES) == null && (roles != null && !roles.isEmpty())) {
AttributeStatementType attrStatement = StatementUtil.createAttributeStatement(roles);
assertion.addStatement(attrStatement);
}

0 comments on commit d33a2b5

Please sign in to comment.