Restrict back end to instructors

Home Forums Legacy Support Support queries How-to & Troubleshooting Restrict back end to instructors

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #203357
    KAIST
    Spectator
    Hi. Thank you for your hard work. The following function prevented the instructor from going to the back end. ENABLE SWITCH WP ADMIN – WPLMS – BUDDYPRESS – HIDE ADMIN BAR However, if instructor use edit image, they can enter back end. and they can do many things , for example add category, delete unit...etc https://screencast-o-matic.com/watch/cqfhfAZ18A Is it possible to solve this part? "Restrict Instructors to Create a New Course Category" found in: https://wplms.io/support/knowledge-base/restrict-instructors-to-create-a-new-course-category/ But basically I would like to eliminate the hole that the instructor can go to the back end. thanks!
    #203558
    logan
    Member
    Hello, add extra codes in  wplms customizer plugin > wplms customizer.php function restrict_admin_access() {     if (!current_user_can('manage_options')){         wp_redirect( home_url() );     } } add_action( 'admin_init', 'restrict_admin_access', 99); It should work;
    #203577
    KAIST
    Spectator
    Hi logan! I am very fortunate to be able to prevent the instructor from entering the Back end. However, applying the current code does not seem to allow the instructor to log in at all. Could you check it once. https://screencast-o-matic.com/watch/cqf1D1ZjHb thank you
    #203676
    logan
    Member
    Hello, Please make sure you have updated your theme and plugins to its latest version. i tried to replicate the issue at my end but it works fine for me. it could be a third party plugin too, please deactivate if there is 3rd party plugins. then check if it works. Refer: http://prntscr.com/n919tb
    #204493
    KAIST
    Spectator
    Thank you logan. Ah. Just have to work around the restrict admin area. Instead, we have to let the user restict edit image function. If we do not have solution than that, I can do this. So I just changed the edit image character to dot (.) So that the user can not see the edit image. But I still need the function, so I left it as dot (.). Is My way of doing this is the best way, right? I did well, right? https://screencast-o-matic.com/watch/cqf2feZqA5 Thank you very much ! And if you have a way to do image editing without regard to the access of the admin area, please let me know. Best!
    #204609
    logan
    Member
    Hello, Yes by translating you can restrict its functionality. wise move. If you want to hide the edit button i can share the custom css for it. that will work else let me know so that i can close this topic.
    #204913
    KAIST
    Spectator
    Hi. Logan. Yes. I want! I would really appreciate it if you could make it invisible with CSS. That could be a fundamentally safe way. Thank you logan
    #204925
    logan
    Member
    This reply has been marked as private.
    #205283
    KAIST
    Spectator
    This reply has been marked as private.
    #205311
    logan
    Member
    Hello, try this code in custom css. .attachment-info a.edit-attachment { display: none !important;} refer: http://prntscr.com/ne04hm **please revert back the translation effect for this button. tip:
    1. align these in a same size, it does not look good. refer: http://prntscr.com/ne0540
    2. Always upload same size of thumbnails. refer: http://prntscr.com/ne066n
    3. hd pix with same width and height for all course thumbnail refer: https://cl.ly/70fc26
    then everything will look perfect and systematic.
    #205441
    KAIST
    Spectator
    This reply has been marked as private.
    #205447
    logan
    Member
    This reply has been marked as private.
    #205562
    KAIST
    Spectator
    logan Your experienced advice will be of immense help to me. Thanks to you I decided to a clear direction. I was particularly confident in your case of 20,000+ customers. You are The best! I send an endless thanks.
    #205565
    logan
    Member
    Its my duty and my personal attachment with customers. i love helping others as much as i can. Never hesitate to ask me anything. Thank you so much. good day :)
Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Restrict back end to instructors’ is closed to new replies.