FSN#44427 API2 notities default jezelf al author

svn path=/Website/branches/v2017.2/; revision=35565
This commit is contained in:
Jos Groot Lipman
2017-10-05 07:21:34 +00:00
parent 2174b0ccc8
commit e227941097

View File

@@ -210,6 +210,9 @@ function model_notes(module)
this.REST_POST = function (params, jsondata) /* new note */
{
params.filter.parent_key = parseInt(jsondata.parent, 10);
if (!jsondata.author)
jsondata.author = user_key;
_check_authorization(params, "POST");
//
var dbfields = api2.update_fields(params, this, jsondata); // Build updater