Hello fellow bubblers, newbie checking in
We have a case where we are building a multi tenancy application where user
s belong to a company
and they can create quote
s which their customer
s should be able to view and accept/reject. Data types and relationships described in the end.
Everything is connected to company
where we use privacy rules to make sure that a user
can only see the customer
s, quote
s, etc. which is connected to their company
. For instance: when "This quote line item
's company
is Current User
's company
".
We tried to avoid setting company
on every data type, but Bubble doesn’t seem to support complex security rules, as described in this post: Rules that use "This Attendee's X's Y" can't grant search access right now.
After locking down everything, security seem to be doing its job and users can only see relevant data. But we want to create a special page where the customer - who doesn’t have an account - can review, accept and/or reject the quote/offer. The page will contain a mix of company
, quote
and quote
s related information. So far we’re sending the customer a special link with the quote
unique id
built in, but of course they aren’t able to see any information since the security rules are in effect. It is security by obscurity, but we’ve deemed it okay for now. Perhaps we’ll add OTP or some other verification method in the future.
Is there any way we can bypass the security rules for a page/view so we can achieve this? Or perhaps even utilize the security rules somehow? I saw a suggestion in another thread to use the api workflow + api connector, but I figured it would be best to ask here first.
Feel free to chime in with other concerns or questions for that matter.
Thanks!
Data types we decided on after browsing through some of the articles, videos and forum posts:
-
Company
-
User
- connected to one
company
- connected to one
-
Customer
- connected to one
company
- connected to one
-
Quote
- connected to one
company
- connected to one
customer
- connected to multiple
quote line item
s
- connected to one
-
Quote line item
- connected to one
company
- connected to one
-
Other data connected to the quote, such as material list, pictures, etc.