We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68020fb commit c80f3d5Copy full SHA for c80f3d5
objects/video.php
@@ -3994,7 +3994,7 @@ public static function canEncoderEdit($videos_id)
3994
{
3995
if (!empty($_REQUEST['video_id_hash']) &&
3996
User::isLogged() &&
3997
- self::getVideoIdFromHash($_REQUEST['video_id_hash']) == intval($videos_id)) {
+ intval(self::getVideoIdFromHash($_REQUEST['video_id_hash'])) === intval($videos_id)) {
3998
return true;
3999
}
4000
return self::canEdit($videos_id);
0 commit comments