I modified the user-role relation to ‘manyToMany’. But now when I have a user with multiple roles and I want to delete one the Strapi BackOffice throws an error:
{
"data": null,
"error": {
"status": 400,
"name": "ValidationError",
"message": "Cannot remove role",
"details": {
"errors": [
{
"path": [
"role",
"disconnect"
],
"message": "Cannot remove role",
"name": "ValidationError"
}
]
}
}
}
I use strapi version 4.8. Is there any solution? On newer versions it has been fixed?
Thanks