From: Jaroslav Kysela Date: Mon, 1 Jun 2015 19:40:50 +0000 (+0200) Subject: DVR: webui api - ensure that owner is set for dvr_entry_create() call, fixes #2908 X-Git-Tag: v4.0.5~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ce77c8b958a24ace9625e393db5eb76d94ec280;p=thirdparty%2Ftvheadend.git DVR: webui api - ensure that owner is set for dvr_entry_create() call, fixes #2908 --- diff --git a/src/api/api_dvr.c b/src/api/api_dvr.c index 383280c77..abf7f0021 100644 --- a/src/api/api_dvr.c +++ b/src/api/api_dvr.c @@ -143,6 +143,8 @@ api_dvr_entry_create if (cfg) { htsmsg_set_str(conf, "config_name", idnode_uuid_as_str(&cfg->dvr_id)); + if (perm->aa_username) + htsmsg_set_str(conf, "owner", perm->aa_username); if (perm->aa_representative) htsmsg_set_str(conf, "creator", perm->aa_representative);