How to use user_id of logged-in user to filter data? #1099
-
This is related to #1039 (selective access to certain rows based on the user that is logged in). I tried to come up with own solution using So, my question is twofold: Is this approach a bad idea? And secondly, is it possible to send data from Express middleware for use in calculations within Observable using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Do you really need to send a personalized "page" (html), or would it be enough to send a personalized "data" (say, csv file contents)? The first approach seems a bit more difficult to me, because the markdown page has to go through Framework to be converted to HTML and sent to the browser, and this happens when we build the site. The second approach might be easier, since you'd only personalize one "raw" file (or several). (Pardon me if I don't fully grok the scope of your project, it seems to be a complex construction.) |
Beta Was this translation helpful? Give feedback.
I must have messed up something because when I tried a more simplified example today, it works without any problems. Apologies for the question. Here is my example of dynamically loaded data: