uncopenweb/torongo

Ownership of records

Closed this issue · 1 comments

If we're going to allow people to create and edit games on Hark.org we're going to need owned records (or something equivalent). Should we just add more letters to the mode? Or is this some orthogonal mechanism?

Letters might be:
c: create
C: create with ownership
r: read
R: restricted read must get only 1 record back
u: update
U: update if you own it
d: delete
D: delete records you own

We'd have to change the current assignments for collections.

4 letters (crud) was pretty nice. Now we're talking 8 at least...

Making it orthogonal, maybe we just add the letter O. When O is set, owner is enforced. Unlike the other letters if you don't ask for O and your role requires it, you get it anyway (or maybe you get an error).

Or maybe you don't request Owner mode at all, maybe it is a characteristic of the collection and/or its schema. So you simply ask for crud but if the collection requires ownership all your accesses are appropriately restricted.

went a different direction.