Prevent students from uploading documents to Buddydrive

Home Forums Legacy Support Support queries Setup issues Prevent students from uploading documents to Buddydrive

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #146710
    erpwebtutor
    Spectator
    We are trying to use the Buddydrive functionality to store content but noticed that there is no way to restrict uploading of files only by the Admin. Currently students are also able to upload documents that other students can see. That is not desirable. Is there a way where only Admins can upload the documents? Appreciate your help. Regards
    #146772
    Anshuman Sahu
    Keymaster
    You can restrict the space alloted to users from wp-admin -> settings -> buddydrive : http://prntscr.com/if2r1m  change it to 0 .
    #146979
    erpwebtutor
    Spectator
    Tried putting zero but it won't let you save. Please try on your end and confirm.
    #147045
    Anshuman Sahu
    Keymaster
    Hi, Please paste the following code in wp-admin>plugin>editor>WPLMS customizer plugin   add_filter('buddydrive_current_user_can',function($can, $capability, $user_id, $args){ if(!user_can($user_id,'edit_posts')){ $can = false; } return $can; },10,4);
    #148291
    erpwebtutor
    Spectator
    Tried the same but the add new file is still showing up for users with Student role. Any other suggestion?
    #148387
    Anshuman Sahu
    Keymaster
    Hi, There is a little change in code. Replace 10 with 90 in the last line of code. Refer : http://prntscr.com/ilatyg
    #148536
    erpwebtutor
    Spectator
    Thanks for your help. This is now resolved. You can close this thread.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Prevent students from uploading documents to Buddydrive’ is closed to new replies.