Comments (7)
Yes it is the plan.
from daybed.
Imagine a model with private records (read_own_records
, update_own_records
). How can I share records with someone as read-only ?
I guess we should add a notion of readers in addition to authors then.
from daybed.
If you want to let the user add and update its own records and let him read yours you have to use two distincts hawk tokens. One with the read_own_records that will be linked to the records authors and one for your own records.
What we could do is to add differents permission fields to the records:
- own
- read
- update
- delete
If you are in own you get them all, and then you can be in either read/update or delete.
from daybed.
The first option looks quite consistent! Most use-cases will indeed imply sharing private records publicly using a permalink, that could contain this additional token. Plus, accessing the list of records with this token will give all shared records.
But, however as far as I understand, sharing one record will require being allowed to change the model permissions! It thus implies having the right to take the model ownership too :)
We could also imagine to add a finer grain of permissions (regarding model permissions) but can be a huge overkill to distinguish owner's from others etc.
Your second proposition is interesting :) Let's try to define a API and see if we don't fallback into over-engineering :)
from daybed.
Actually for https://github.com/spiral-project/daybed-cloud-share I will need this kind of behavior.
from daybed.
Does this means we should add an update_records_permissions
permission?
from daybed.
I am working on #268 to at least allow somebody to modify the authors_list. It would be a start.
from daybed.
Related Issues (20)
- Plug loads with Daybed functional tests
- Resolve relation fields
- Add definition PUT, that would create/update models HOT 4
- Plugin idea : Daybed history HOT 2
- Hide the system.Everyone and system.Authenticated pyramid paradigm from daybed users.
- Record validation error appears several times in response
- GET model definition should return the required parameter for all fields. HOT 6
- Multiple time the same validation errors HOT 2
- Missing location header in PUT /models/:id
- PUT/POST /models/:modelid/records with an unknown field type in the model definition (stored in the database) raise a 500 HOT 4
- Mention appback among competitors
- Should store deserialized value of records HOT 1
- Revoke / update tokens
- Redis backend: colander.null is not JSON serializable
- ElasticSearch bottleneck for batch record creation HOT 1
- [CouchDB] Having a - in the model name breaks the server
- Include the list of plugins in the hello page.
- Document the Daybed search endpoint
- Let's define a model field as primaryKey that will be used on the POST /records and validated with the recordId on PUT HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daybed.