verida / storage-node

ISC License
3 stars 5 forks source link

Support per record permissions #3

Open tahpot opened 3 years ago

tahpot commented 3 years ago

Support permissions to be specified in the row itself that will dynamically determine if a user can create, update, delete a record.

Suggestion:

{
  _id: "abc",
  _permissions: {
    read: ['user1', 'user2', 'user3'],
    write: ['user1', 'user2', 'user3'],
    delete: ['user1', 'user2', 'user3'],
  }
}