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.0.2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f19998e14d14c4c5a5fbf7bd0e367f91b43f676a;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 5508d7769..982890216 100644 --- a/src/dvr/dvr.h +++ b/src/dvr/dvr.h @@ -564,6 +564,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; @@ -612,6 +614,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;