From: John Törnblom Date: Wed, 2 Feb 2011 08:51:07 +0000 (+0100) Subject: Don't check for authentication twice X-Git-Tag: 2.99~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33abd5d885fa19492293dc2227c157152989cb8e;p=thirdparty%2Ftvheadend.git Don't check for authentication twice --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 13e754f44..0b500ce23 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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);