sanitizeOutput removing relation because of permission issue

Strapi v4

I have a content type “raffle” that has a attribute:

"ticketProduct": {
      "type": "relation",
      "relation": "oneToOne",
      "target": "plugin::strapi-stripe.ss-product"
    },

However the public role does not have permission plugin::strapi-stripe.ss-product.find so sanitizeOutput removes the ticketProduct from the response. How do I add the permission? There is no controller for ss-product so there is no permission in the Admin panel to add to the Public role. Can I programatically add a permission to the public action?

1 Like