code: async function getGrantsFor (permissionModel, roleId, stateMachineName) {
    const permissions = await permissionModel.findOne({
      where: {
        roleId: { equals: roleId },
        stateMachineName: { equals: stateMachineName }
      }
    })
    return permissions ? permissions.allows : [ ]
  }
docs: removePermission