]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Don't check for authentication twice
authorJohn Törnblom <john.tornblom@gmail.com>
Wed, 2 Feb 2011 08:51:07 +0000 (09:51 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Fri, 4 Feb 2011 15:01:13 +0000 (16:01 +0100)
src/webui/webui.c

index 13e754f44407c3aab3bd47eded4a6579e7e1d063..0b500ce23e25064ff67f9adad69d6baa729f3d72 100644 (file)
@@ -276,13 +276,6 @@ page_http_playlist(http_connection_t *hc, const char *remain, void *opaque)
   char *components[2];
   channel_t *ch = NULL;
 
-  if(http_access_verify(hc, ACCESS_STREAMING)) {
-    http_error(hc, HTTP_STATUS_UNAUTHORIZED);
-    return HTTP_STATUS_UNAUTHORIZED;
-  }
-
-  hc->hc_keep_alive = 0;
-
   if(remain == NULL) {
     http_stream_playlist(hc, NULL);
     return 0;
@@ -482,11 +475,6 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
 
   pthread_mutex_lock(&global_lock);
 
-  if(http_access_verify(hc, ACCESS_RECORDER)) {
-    pthread_mutex_unlock(&global_lock);
-    return HTTP_STATUS_UNAUTHORIZED;
-  }
-
   de = dvr_entry_find_by_id(atoi(remain));
   if(de == NULL || de->de_filename == NULL) {
     pthread_mutex_unlock(&global_lock);