We shouldn't need the same permissions for a PUT which create or modify a record same for models.#114
We shouldn't need the same permissions for a PUT which create or modify a record same for models.#114
Conversation
|
I believe this is no longer valid. Can we close? |
|
No it is still valid. This is an ACL inconsistency AMA. If you make a PUT on a create you should just have the create_record, if you make a PUT on a erase, you should need the create_record and delete_record (same for models) |
|
Should we check something like this in records.put view ? https://github.com/spiral-project/daybed/blob/1.0.1/daybed/views/records.py#L34 |
|
Yes I think so
|
|
I had this bug with https://github.com/spiral-project/daybed-cloud-share, I am going to fix it. |
|
r? @leplatrem |
|
I'm not sure about what is done in this PR actually :( Could explicit your specifications in the tests please ? I would have expected something like :
And since the title says "same for models", I would have expected the same for models :) Please note that views permissions tests are not supposed to be functional test suites, something in RecordsViewsTest would be more efficient, since not executed several times with different backend etc. |
|
Ok I will rework this tests. |
No description provided.