[BE] Do not allow custom roles without selected permissions to be created
The memberRoleCreate
mutation allows custom roles to be created without any enabled permissions:
This makes the role pointless because it's no different than the base role. The mutation should throw an error if there are no enabled permissions on the base role. Example response:
{
"data": {
"memberRoleCreate": {
"errors": ["Cannot create a member role with no enabled permissions"],
"memberRole": null
}
}
}
Edited by Daniel Tian