Update vcard roles to use new 'groups' list
mod_happydev_vcard pulls data from user.roles
which no longer exists.
It should be updated to use user.groups
which looks like the following:
{
"@id" : "https://api.test3.startinblox.com/users/username/",
"groups" : {
"ldp:contains" : [
{
"@id" : "https://api.test3.startinblox.com/groups/1/"
},
{
"@id" : "https://api.test3.startinblox.com/groups/2/"
}
],
"permissions" : [
{
"mode" : {
"@type" : "view"
}
}
],
"@type" : "ldp:Container",
"@id" : "https://api.test3.startinblox.com/users/username/groups/"
}
}
Requesting the groups resource also returns the names:
{
"@id": "https://api.test3.startinblox.com/groups/1/",
"name": "SuperTest",
"user_set": {
"@id": "https://api.test3.startinblox.com/groups/1/user_set/",
"@type": "ldp:Container",
"ldp:contains": [
{
"@id": "https://api.test3.startinblox.com/users/xavier/"
},
{
"@id": "https://api.test3.startinblox.com/users/jbpasquier/"
}
],
"permissions": [
{
"mode": {
"@type": "add"
}
},
{
"mode": {
"@type": "view"
}
}
]
},
"permissions": [
{
"mode": {
"@type": "view"
}
}
],
"@context": "https://cdn.happy-dev.fr/owl/hdcontext.jsonld"
}