spiral-project / daybed

Form validation and data storage API
http://daybed.rtfd.org/
BSD 3-Clause "New" or "Revised" License
53 stars 8 forks source link

Let POST /models and PUT /models/:model_id handle permissions configuration. #235

Closed Natim closed 9 years ago

leplatrem commented 9 years ago

Yes! Thanks !

Maybe we can avoid duplicated code, and move it somewhere in permissions.py ?

You could add a test to check that authors permissions are always ALL, even if provided during model creation...

Natim commented 9 years ago

You could add a test to check that authors permissions are always ALL, even if provided during model creation...

Is it what we want though?

leplatrem commented 9 years ago

I thought so since I could not find any usecase otherwise! But indeed we might want to keep it stupid simple. Whatever you choose, keep consistent with PATCH/PUT permissions!