Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed May 11, 2020
1 parent 1659f72 commit 93917b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/videoEmbeded.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
$host = strtolower(parse_url(@$_SERVER['HTTP_REFERER'], PHP_URL_HOST));
$allowedHost = strtolower(parse_url($global['webSiteRootURL'], PHP_URL_HOST));
if ($allowedHost !== $host) {
if (empty($advancedCustomUser->blockEmbedFromSharedVideos) || !CustomizeUser::canShareVideosFromVideo($video['id'])) {
if (!empty($advancedCustomUser->blockEmbedFromSharedVideos) && !CustomizeUser::canShareVideosFromVideo($video['id'])) {
die("Embed is forbidden");
}

Expand Down

0 comments on commit 93917b7

Please sign in to comment.