Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http: allow ACL with HTSP streaming to fetch icons from imagecache vi…
…a HTTP, fixes #2529
  • Loading branch information
perexg committed Dec 3, 2014
1 parent 360dd56 commit 64eec14
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/webui/webui.c
Expand Up @@ -1233,10 +1233,12 @@ page_imagecache(http_connection_t *hc, const char *remain, void *opaque)
return HTTP_STATUS_NOT_FOUND;

if(hc->hc_access == NULL ||
(access_verify2(hc->hc_access, ACCESS_WEB_INTERFACE) &&
access_verify2(hc->hc_access, ACCESS_STREAMING) &&
access_verify2(hc->hc_access, ACCESS_ADVANCED_STREAMING) &&
access_verify2(hc->hc_access, ACCESS_RECORDER)))
(access_verify2(hc->hc_access, ACCESS_OR |
ACCESS_WEB_INTERFACE |
ACCESS_STREAMING |
ACCESS_ADVANCED_STREAMING |
ACCESS_HTSP_STREAMING |
ACCESS_RECORDER)))
return HTTP_STATUS_UNAUTHORIZED;

if(sscanf(remain, "%d", &id) != 1)
Expand Down

0 comments on commit 64eec14

Please sign in to comment.