Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Corrected /json/wiki/save|create to honor the proper g.perm.WrWiki/NewWiki perm, instead of just WrWiki. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | json |
Files: | files | file ages | folders |
SHA1: |
d3759cd40f617c26f8c57e2321c355fe |
User & Date: | stephan 2011-09-23 01:00:49.883 |
Context
2011-09-23
| ||
10:52 | Changed fossil_json_f() callback interface. Refactored json command dispatching a bit. Fixed an ordering problem in the json timelines. Pulled in latest cson_amalgamation. ... (check-in: c24b4450 user: stephan tags: json) | |
01:00 | Corrected /json/wiki/save|create to honor the proper g.perm.WrWiki/NewWiki perm, instead of just WrWiki. ... (check-in: d3759cd4 user: stephan tags: json) | |
00:39 | Added initial JSONP support, but lacks significant testing. ... (check-in: e72ae99d user: stephan tags: json) | |
Changes
Changes to src/json.c.
︙ | ︙ | |||
1685 1686 1687 1688 1689 1690 1691 | cson_object * pay = NULL; cson_string const * jstr = NULL; char const * zContent; char const * zBody = NULL; char const * zPageName; unsigned int contentLen = 0; int rid; | > | | 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 | cson_object * pay = NULL; cson_string const * jstr = NULL; char const * zContent; char const * zBody = NULL; char const * zPageName; unsigned int contentLen = 0; int rid; if( (createMode && !g.perm.NewWiki) || (!createMode && !g.perm.WrWiki)){ g.json.resultCode = FSL_JSON_E_DENIED; return NULL; } nameV = json_req_payload_get("name"); if(!nameV){ g.json.resultCode = FSL_JSON_E_MISSING_ARGS; goto error; |
︙ | ︙ |