Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: use All RW ACL rule also for timerec/autorec entries, fixes #2888
  • Loading branch information
perexg committed May 25, 2015
1 parent 7dd98ac commit 1494125
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dvr/dvr.h
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1494125

Please sign in to comment.