Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kushakk

    (@kushakk)

    Hello again @probillals, thanks for quick replay, but I still face the same problem even after reinstalling plugin, I found a function which causes the problem at /tutor/classes/template.php on line 229 ‘play_private_video’, especially this part of code code at line 244:

    if (tutor_utils()->is_course_enrolled_by_lesson()) {
    $video_info = tutor_utils()->get_video_info();
    if ( $video_info ) {
    $stream = new Video_Stream( $video_info->path );
    $stream->start();
    }
    }else{
    _e(‘Permission denied’, ‘tutor’);
    }
    exit();

    It seems problem occurring at “tutor_utils()->is_course_enrolled_by_lesson()” in which it fails to give permission for private video for author, if i start “stream” at else statement everything works fine, but even unlogged person can view private video in this case. What would be the best course of action to tackle this problem so the author can view his video but unauthorized person can’t?

    • This reply was modified 4 years, 7 months ago by kushakk.
    Thread Starter kushakk

    (@kushakk)

    Tried to disable all plugins besides tutor lms and changed theme to standard one but still face same problem.

    To be more precise i am talking about viewing course from front-end part. https://imgur.com/U0XNKST

    If i try to open source video link https://imgur.com/WlvoJck

    it shows me this page https://imgur.com/zQC0ies
    But if i try to do same steps being not author of course it works fine, so the problem is with permission of viewing course as it’s author i.e. author can’t view mp4 videos he uploads inside a lesson.

    I’ll try to reinstall tutor lms on my site to see if it helps

Viewing 2 replies - 1 through 2 (of 2 total)