From: Jaroslav Kysela Date: Mon, 25 May 2015 11:05:06 +0000 (+0200) Subject: DVR: use All RW ACL rule also for timerec/autorec entries, fixes #2888 X-Git-Tag: v4.2.1~2473 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14941255f55c1523d99bf1ce59f889949c572512;p=thirdparty%2Ftvheadend.git DVR: use All RW ACL rule also for timerec/autorec entries, fixes #2888 --- diff --git a/src/dvr/dvr.h b/src/dvr/dvr.h index 41e320fe1..24c292c65 100644 --- a/src/dvr/dvr.h +++ b/src/dvr/dvr.h @@ -559,6 +559,8 @@ void dvr_autorec_update(void); static inline int dvr_autorec_entry_verify(dvr_autorec_entry_t *dae, access_t *a) { + if (!access_verify2(a, ACCESS_ALL_RW_RECORDER)) + return 0; if (strcmp(dae->dae_owner ?: "", a->aa_username ?: "")) return -1; return 0; @@ -601,6 +603,8 @@ void dvr_timerec_update(void); static inline int dvr_timerec_entry_verify(dvr_timerec_entry_t *dte, access_t *a) { + if (!access_verify2(a, ACCESS_ALL_RW_RECORDER)) + return 0; if (strcmp(dte->dte_owner ?: "", a->aa_username ?: "")) return -1; return 0;