Replies: 1 comment 4 replies
-
|
This should be already supported - you can have tenancy at users (see #94) and/or on collection level (aka. via user/rel fields). Unlike Firebase, PocketBase Collection API rules are both access and query filters. For example, let's say we want each user to have access only to its own The above literally, translates to - return/match all records with Furthermore, you can even query nested relation fields (aka. over multiple tables). Let's say we have 2 collections with the following fields:
To allow access to only to You also have an option to query fields of non directly related collections (aka. joins) via the More info you could find at https://pocketbase.io/docs/manage-collections/#rules-filters-syntax and https://pocketbase.io/docs/manage-users/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Does this support tenant data? How would you go about doing that?
Beta Was this translation helpful? Give feedback.
All reactions