In an app, we have certain data tables that work similar to Notion/Google drive share capabilities. If the data is shared with a certain list of users, they need to enter their email to access it.
The privacy rules are also set accordingly.
When the user enters there email, I check their access via backend workflow (which ignores privacy rules) and returns yes/no.
I update the state on my page and show the group with the details.
My problem is that the privacy rules do not refresh until I refresh the page, which creates a bit of bad UX for the end user.
Have any of you tried something similar and do you have a better solution?
ntabs
2
@animisha45 yeah it’s a known bug. Here’s some details about it:
Maybe if you put a data field on the thing, list of UIDs of users that have access, buts it just list of text, not users. Then privacy rule is things list of text, contains current users UID.
This is a secondary privacy rule, not the main one, as you don’t want to store the list text indefinitely.
I have set it is as you have mentioned. Data contains list of Users (for signed up users) and list of text (emails of users not signed up on platform). Privacy rules for both.
Does it work so that you do not need to refresh the page now?
No.
I meant that your recommendation is the original setup and I need a refresh the page.
I was trying a bit more here and something new that I found out,
If I search for the thing in workflow and make changes to it, I do not need to refresh the page.
However, when I display data, I need to refresh the page.
Hope that makes sense.
system
Closed
9
This topic was automatically closed after 70 days. New replies are no longer allowed.