Repository navigation
ezprestapi 1.2.5: permission checks on every read and write, v1 reads again
- Every read and write of the content controller checks the signed-in user's rights first, for every way of signing in (OAuth token, personal API key, HTTP basic auth, anonymous): read follows content/read, create the content/create limitations of the parent, edit content/edit, remove content/remove on every location. A refusal answers 403 with a clear message.
- Lists and counts also check that the parent node can be read.
- Reads answer at v1 again (read-only, for existing clients) and at v2; writes are v2 only.
- Create answers 201 with objectId and nodeId; delete answers 200 and accepts DELETE as well as POST; an allowed update answers 501 (updating is not implemented).
- Field, count and object reads run in this extension's controller, so they get the checks too.
Requires Exponential 6.0.15 (main) for the permission helper and the v1 routes; on an older kernel writes are refused with 403 rather than run unchecked.