FSN#44427 API2 notities default jezelf al author
svn path=/Website/branches/v2017.2/; revision=35565
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user