Unverified Commit 1a2cfc68 authored by sknirmalkar89's avatar sknirmalkar89 Committed by GitHub
Browse files

SB-28404:SB-28404:[SSO > Global consent]issue:Throw consent not found...

SB-28404:SB-28404:[SSO > Global consent]issue:Throw consent not found exception list is empty (#1044)

* SB-28404:[SSO > Global consent]issue:Throw consent not found exception list is empty
No related merge requests found
Showing with 6 additions and 2 deletions
+6 -2
...@@ -49,9 +49,13 @@ public class UserConsentActor extends BaseActor { ...@@ -49,9 +49,13 @@ public class UserConsentActor extends BaseActor {
Response response = new Response(); Response response = new Response();
if (CollectionUtils.isNotEmpty(consentList)) { if (CollectionUtils.isNotEmpty(consentList)) {
//Remove revoked consent from the list
List<Map<String, Object>> consentResponseList = constructConsentResponse(consentList); List<Map<String, Object>> consentResponseList = constructConsentResponse(consentList);
response.put(JsonKey.CONSENT_RESPONSE, consentResponseList); consentList=consentResponseList;
} else { }
if(CollectionUtils.isNotEmpty(consentList)){
response.put(JsonKey.CONSENT_RESPONSE, consentList);
}else {
throw new ProjectCommonException( throw new ProjectCommonException(
ResponseCode.userConsentNotFound.getErrorCode(), ResponseCode.userConsentNotFound.getErrorCode(),
ResponseCode.userConsentNotFound.getErrorMessage(), ResponseCode.userConsentNotFound.getErrorMessage(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment