Skip to content

Commit

Permalink
allow admin to see private streams
Browse files Browse the repository at this point in the history
  • Loading branch information
DaWe35 committed Aug 24, 2020
1 parent cbac485 commit 9153420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get/stream_resolution.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 9153420

Please sign in to comment.