Skip to content
Snippets Groups Projects
Commit 5ec6eaac authored by Lennard Strohmeyer's avatar Lennard Strohmeyer :penguin:
Browse files

#162: return empty groups list to frontend when user has not declared any consents

parent 73973b48
Branches
Tags
1 merge request!1#155: fixed data disclosure tests for environments where no mongodb is...
Pipeline #1657311 passed
...@@ -506,6 +506,7 @@ class GetUserConsentHistoryView(APIView): ...@@ -506,6 +506,7 @@ class GetUserConsentHistoryView(APIView):
except ObjectDoesNotExist: except ObjectDoesNotExist:
return JsonResponse( return JsonResponse(
{ {
"groups": [],
"message": "User has no consent declaration record.", "message": "User has no consent declaration record.",
"no_consent_record": True, "no_consent_record": True,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment