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.2.1~2400 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa3b0257ad192912b8abd193ffd6a14812afb230;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 f43a7f0ce..bcb1ce3a0 100644 --- a/src/api/api_dvr.c +++ b/src/api/api_dvr.c @@ -145,6 +145,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);