From 9153420434d2665822b12421ddaa88d3fc06c0c0 Mon Sep 17 00:00:00 2001 From: DaWe <10603822+DaWe35@users.noreply.github.com> Date: Mon, 24 Aug 2020 20:42:48 +0200 Subject: [PATCH] allow admin to see private streams --- get/stream_resolution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get/stream_resolution.php b/get/stream_resolution.php index 63f54cc..e0ccbf5 100644 --- a/get/stream_resolution.php +++ b/get/stream_resolution.php @@ -28,7 +28,7 @@ exit('Stream has removed'); } -if ($stream['visibility'] == 'private' && (!isset($_SESSION['id'] ) || $_SESSION['id'] != $stream['userid'])) { +if ($stream['visibility'] == 'private' && (!isset($_SESSION['id']) || $_SESSION['id'] != $stream['userid']) && $_SESSION['id'] != 1) { http_response_code(403); exit('Access denied, please log in if this is your content'); }