Forum Academy Marketplace Showcase Pricing Features

Plugin Data Access under Privacy rules

Hi Bubble folks,

Is it possible to pass User rights onto my database objects ?

I have following settings:

  • A Thing Offer containing a List of Thing OfferItem under the field offer_items
  • A server-side plugin that takes a List of Offers as an input and performs a for loop on the list of Offer, in each loop I am looping on OfferItems and want to access their fields.

As soon as I set Privacy rules onto Things, the fields of OfferItems which are not passed as direct input are not readable for my plugin.

Any recommendation or best practices ?

:slight_smile:

@vini_brito @edwardbutcher @keith @AliFarahat allowing myself to ping you, I saw you guys reply on this post which is not so far away from this one, maybe you’ll have time and insights to share on the question.

thks

Workflows, privacy rules, and expressions work exactly the same with plugins as with any other action. On the client side access to data is governed by privacy rules affecting the User. On the backend you can of course run backend/API workflows without the User context (“ignore privacy rules when running the workflow”).

I don’t understand what your question is, basically.

1 Like