Skip to content

Commit

Permalink
By pass if it is whitelisted
Browse files Browse the repository at this point in the history
  • Loading branch information
DanieL authored and DanieL committed Nov 4, 2022
1 parent 4d22333 commit 29f5eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/CustomizeUser/CustomizeUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public function getModeYouTube($videos_id) {
}

$svd = AVideoPlugin::loadPluginIfEnabled('SecureVideosDirectory');
if (!empty($svd) && $this->isWhiteListed()) {
if (!empty($svd) && $svd->isWhiteListed()) {
_error_log("CustomizeUser::getModeYouTube this video is embed and whitelisted, we will by pass the security check");
return true;
} else {
Expand Down

0 comments on commit 29f5eff

Please sign in to comment.