Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp dvr access: some updates to PR #333, plugs a few holes in access…
… checks
  • Loading branch information
adamsutton committed Mar 13, 2014
1 parent c6a5770 commit 7900bbc
Show file tree
Hide file tree
Showing 5 changed files with 137 additions and 83 deletions.
7 changes: 7 additions & 0 deletions docs/html/config_access.html
Expand Up @@ -74,6 +74,13 @@
<dt>Admin
<dd>
Enables access to the Configuration tab.

<dt>Channel Tag Only
<dd>
If enabled, the user will only be able to access channels with a tag the
same name as the username.

This provides a very rudimentary way of limiting access to certain channels.

<dt>Comment
<dd>
Expand Down
2 changes: 1 addition & 1 deletion src/dvr/dvr.h
Expand Up @@ -425,7 +425,7 @@ typedef struct dvr_cutpoint {

typedef TAILQ_HEAD(,dvr_cutpoint) dvr_cutpoint_list_t;

dvr_cutpoint_list_t *dvr_get_cutpoint_list (uint32_t id);
dvr_cutpoint_list_t *dvr_get_cutpoint_list (dvr_entry_t *de);
void dvr_cutpoint_list_destroy (dvr_cutpoint_list_t *list);

#endif /* DVR_H */
6 changes: 2 additions & 4 deletions src/dvr/dvr_cutpoints.c
Expand Up @@ -206,16 +206,14 @@ static struct {
* Return cutpoint data for a recording (if present).
*/
dvr_cutpoint_list_t *
dvr_get_cutpoint_list (uint32_t dvr_entry_id)
dvr_get_cutpoint_list (dvr_entry_t *de)
{
int i;
dvr_entry_t *de;
char *path, *sptr;
dvr_cutpoint_list_t *cuts;

/* Check this is a valid recording */
if ((de = dvr_entry_find_by_id(dvr_entry_id)) == NULL)
return NULL;
assert(de != NULL);
if (de->de_filename == NULL)
return NULL;

Expand Down

0 comments on commit 7900bbc

Please sign in to comment.