Hi there,
I am just checking out the Cockpit CMS, and I’m very much impressed from the clean design.
This makes a lot of sense for me, and I’m checking out how I can use this in new projects.
One current task ist, that I want to enable user self-registration,
where the user can store its data, but is isolated from all other users.
So far I tested via UI only, and there were no clear separations or concepts.
A user with read only could access other data as well, not sure if I configured something wrong.
How would I setup to achieve my goals ?
I’m thinking about something like this
Separate collections per user:
- new user registers, got an account an limited access-token (CRUD) for his own data.
- a new collection with the users ID is created
- then the user only can access his own collection
Another approach would be
One collections for multimple users:
- new user registers, got an account an limited access-token (CRUD) for his own data.
- a common collection with a filter for the users ID is used
- then the user only get filtered access of his own collection data
I think the 1. approach has better isolation, but maybe Cockpit is not made for many users with many collections.
I want to ask what would be the right way to start with such project,
or is there maybe already some hidden feature for such use, that I cannot see at the moment.
Maybe by REST access only, and switching off the UI, is this maybe a better way ?
Hope that someone can help me dive deeper into this great library.