Okay
  Public Ticket #3094143
instructor privacy not working
Closed

Comments

  • Saurabh started the conversation

    Instructor privacy is not working. I’ve logged with instructor credential but all wp-media files are visible to instructor while editing course.

  •  390
    Ripul replied

    Hi please enable 

    Instructor content privacy from wp-admin-> vibebp-> settings .

  •  390
    Ripul replied

    Please share site credentials 

  •   Saurabh replied privately
  •  390
    Ripul replied

    Please add this custom code in your wplms-customizer.php file in wplms customizer plugin : 

    add_filter( 'ajax_query_attachments_args', 'wpb_show_current_user_attachments' ); function wpb_show_current_user_attachments( $query ) {    $user_id = get_current_user_id();    if ( $user_id && !current_user_can('activate_plugins') && !current_user_can('edit_others_posts
    ') ) {        $query['author'] = $user_id;    }    return $query;
    } 


  • sktulsyan replied

    This too not working. You have site credentials, you can check yourself.

  •  390
    Ripul replied

    add this code as well 

    function posts_for_current_author($query) {
    global $pagenow;
    if( !current_user_can( 'manage_options' ) ) {
    global $user_ID;
    $query->set('author', $user_ID );
    }
    return $query;
    }
    add_filter('pre_get_posts', 'posts_for_current_author');

  • Saurabh replied

    I've checked with existing instructor and created new one too. but this too is not working. why do you not checking at your end. you have login credential.

  •  390
    Ripul replied

    Hi this is working at my end , can you please share a video of this not working along with working admin creds .

  •   Saurabh replied privately
  •  390
    Ripul replied

    Yes you shared them but they are not working : 

    https://prnt.sc/WJH0vX1Bn0jO

  • Saurabh replied

    ok...I'm sorry for that. Please check, It's working now.

  • sktulsyan replied

    Waiting for the solution. When will it be fixed?

  •  390
    Ripul replied

    Hi I received update from Mr.vibe that a custom code added to your site to fix it . 



  • Saurabh replied

    For media, it's working now but a new issue created. When clicking on "move to accessibility" screen goes blank. plz check and resolve. thanks

    https://screencast-o-matic.com/watch/c3jQosVZsO6

  •  390
    Ripul replied

    Hi this is due to custom course navigation plugin .Please try to deactivate it .It will fix . 

    But yes we are yet to fix it 

  •  390
  • Saurabh replied

    ok...after deactivation of custom_course_navigation plugin, it started working. so now waiting for fix in custom_course_navigation plugin

  • [deleted] replied

    This has been fixed , fix coming up in next update of wplms plugin . 

  • Saurabh replied

    ok...when will "custom_course_navigation plugin" fixed which causing issue.

  • [deleted] replied

    Its fixed its just the other bug fixes we are working on before releasing the update of wplms plugin . 

    IF you want the fix in urgent then please share your ftp creds in private reply .