From 33abd5d885fa19492293dc2227c157152989cb8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Wed, 2 Feb 2011 09:51:07 +0100 Subject: [PATCH] Don't check for authentication twice --- src/webui/webui.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/webui/webui.c b/src/webui/webui.c index 13e754f4..0b500ce2 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);